Any tool to help writing programing article with MS Office Word
All! When I use MS office 2010 Word to write an article about Java, I always开发者_开发技巧 need to embed some Java code into the document. I wonder whether there is such a plugin for Word, or another software tool, that can help me do such a job.
Especially features on code formatting and keywords highlighting are welcome!
There are several ways to get syntax highlighted text in Word. Here are some I know:
Eclipse + OpenOffice Writer (Word should do this as well)
- Mark and copy a code section in Eclipse
- Paste into Writer (Ctrl+Shift+V) or Word (Ctrl+Alt+V) as HTML or RTF text
Using Notepad++
- Paste the code section to Notepad++
- Select the appropriate syntax highlighting
- Use the NppExport Plugin to export to a RTF file
- Open the file with Word
http://www.ifcx.org/wiki/Wings.html will let you embed live code and execute it in a document, but it requires open office and some plugins.
There is also Highlight, which can export to multiple formats (including HTML, RTF and even SVG!), and has many themes.
精彩评论