How can i put snippets of code, in word or open office?
i am putting xml and java, if it has good formatting, even maybe a small shade in back, its even better
How can i put snippets of code, in word or open office?
i am putting xml and java, if it has good formatting, even maybe a small shade in back, its even better
Try copy / pasting it in from your IDE: Visual Studio at least puts it on the clipboard as RTF including all formatting. You should then highlight the section and set it to 'language: neutral' though to clear all the red squigglies you'll get.
At the very least you'll be able to get one of the free Visual Studio versions and use that to format the XML; I think it even has some proto-Java formatting support too from back when they had J#. I wouldn't be surprised if the good Java IDEs did this too.
IF you are using Netbeans, you can chose to download the
Special CopyPaste
Plugin. This basically allows you to copy pieces of code and it converts it into XML. Once that it is pasted into word, word converts the XML back into the text that you had on the IDE. Indentations, text size, font and colours are maintained.