eubas.blogg.se

Insert custom fill color in apache openoffice writer table
Insert custom fill color in apache openoffice writer table












Simply choose your language from the language menu, type your code, high-light code, select Edit->Copy as RTF, paste into Word with formatting (default paste). You can also use SciTE to paste code if you don't want to install heavy IDEs and then download plugins for all the code you're making. (The main problem? Printed pages typically aren't as wide as editor windows so wrapping will suck.) :-)Īn advantage of doing it this way is that it is easy to adapt to whatever code you're doing you don't have to rely on some IDE to figure out whatever is going on for you. Long chunks of code probably should not normally be in something that's going to go on a dead tree. It's then pretty simple to go through and mark up a pasted example as being code and have it come out looking really good, and this is works well for short snippets. I then create additional character styles on top (e.g., " Comment", " String", " Keyword", " Function Name Decl", " Variable Name Decl") which I layer on top those set the color and whether the text is bold/italic.

insert custom fill color in apache openoffice writer table

I also make sure that inter-line and inter-paragraph spacing are set right. What I do is create a paragraph style (perhaps called " Code Example" or something like that) which uses a monospaced font, carefully chosen tabs, a very light grey background, a thin black border above and below (that helps visibility a lot) and with spelling turned off.

insert custom fill color in apache openoffice writer table

When I've done this, I've made extensive use of styles.














Insert custom fill color in apache openoffice writer table