web analytics

MS Word: put syntax highlighed code into the document

Here is the simple method to put the code with highlighting into the Word document:

  1. Download and install Notepad++. This is easy-to-use and yet very powerful text editor with a lot of features, support of the plugins etc.
  2. Put your code into the Notepad++ edit window
  3. Configure the language, if Notepad++ did not do this automatically:
    Language->your language
    npp language select
    If necessary the additional configuration could be done in the Style Configurator: Settings->Style Configurator…
  4. Export the highlighted text with help of NppExport plugin: Plugins->NppExport
    It has the following options:
    npp export options
  5. Select “Copy RTF to clipboard”
  6. Paste the content of the clipboard into the Word document
  7. Make any changes in the Word document if necessary

[amazon-product]0789743116[/amazon-product]

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

  

  

  

Categories

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.