Syntax Highlight Code in Word Documents

Placed a form around Google’s SyntaxHighlighter javascript code. Made it easier to use.

To get some nice syntax highlighted code into a Word document, use IE and copy and paste some code into the form below and click the button.  A new window will popup with the syntax highlighed code.  Copy all and paste into your document.  Unfortunately Firefox doesn’t copy and paste into Word like IE does, so you’re stuck with IE if you’re looking to copy the resulting formatted code into a Word doc.


 

You can leave a response, or trackback from your own site.
  • Eduards Sizovs

    Very useful, thank you!

  • http://www.norbie.co.uk Norbie

    Very useful, thanks!

  • ITZYY

    Thanks!!!

  • Alex

    Great too, thank you!

  • Lakshij

    great work thanx bud

  • Philip

    Thanks, came here from your superuser post. By the way although the code is hosted on Google Code it’s maintained by Alex Gorbatchev, not Google.

  • Jeff Woehler

    Love it – thanks for the tool.

  • Marc

    Exactly what I was looking for!

  • http://twitter.com/GooglePlusCloud Erwin Google+ Cloud

    This is what i looking for. Thanks

  • fazio

    niceeeeeeeee

  • Ivanalejandro0

    Bug, highlighting

    :S

  • Ivanalejandro0

    The problem wasn’t the input… was the closing that closes the ‘code’ text area.

    Nombre
    Apellido
    Direccion

  • Ivanalejandro0

    solved using

  • A7968175

    Thank you so much!

  • halfwaycrook

    WOW! This is GREAT!! THANK YOU!!!  THANK YOU!!!

  • Bhavesh Mishra

    Thanks a lot !
    This is really great.
    Keep up the good work.

  • Camila

    muito legal!

  • Angie Rab

    AWSOME!!!

  • Anonymous

    very nice, thanks! Do you have any plans to add the other themes provided by the syntaxhighlighter v3?

  • duploman

    Excellent tool!

    One minor bug I noticed:

    Language: C, C++

    Example code:
    #define FOO 1   // comment#define BAR 2   /* comment */

    Bug:
    Syntax highlighting for comments does not work when they on the same line as a preprocessor directive with the hash sign (#)

  • duploman

    Formatting edit
    Example code:#define FOO 1   // comment
    #define BAR 2   /* comment */

  • Rurui Ye

    great work! Can you offer the code used here because I want to use it in my code plugin of svn web client. of cause it’s None-Commercial use

  • 俊 刘

    Beautiful!!
    Exactly what I was looking for!

  • cookid

    Great. Exactly what I was looking for

  • Lina

    Thank you. It would be great if you could add VHDL and Verilog syntax highlighters to your work too.

  • http://blog.minerva-plm.com/ Yoann Maingon

    This is just Great !

  • Ringo Stahl

    Perfect! Works in Chrome, too.

  • http://twitter.com/tomjohnson Tom Johnson

    This works great! Thank you so much for making it. I love that it retains all the formatting with the paste into Word. Saves me a ton of time.

  • Peter

    Great, just what I needed

  • Timothée Moulin

    Thank you! That’s exactly what I was looking for. ;)

    Chrome does it as well too.