开发者

Any tool to help writing programing article with MS Office Word

开发者 https://www.devze.com 2023-04-07 16:12 出处:网络
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

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)

  1. Mark and copy a code section in Eclipse
  2. Paste into Writer (Ctrl+Shift+V) or Word (Ctrl+Alt+V) as HTML or RTF text

Using Notepad++

  1. Paste the code section to Notepad++
  2. Select the appropriate syntax highlighting
  3. Use the NppExport Plugin to export to a RTF file
  4. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消