Skip to main content
August 10, 2014
Question

Adding Source Code Syntax Highlighting

  • August 10, 2014
  • 1 reply
  • 1312 views

Hi All

I am a Newbie. I would like to create a technical document using Framemaker and I have some questions.

1. Is there a way to include source code from other source code editors like Sublime Text, Programming Language IDE etc?

    Basically, I would like to copy source code listing with color syntax highlighting from a IDE,  "paste" it into Framemakers

    and still preserving all the source code fonts, color highlighting alignment etc.

Thanks and hope someone can advice me.

Regards

Alan

    This topic has been closed for replies.

    1 reply

    Bob_Niland
    Community Expert
    Community Expert
    August 10, 2014

    How much at once? Less than a page? Full page? Multiple pages?

    How are these editors presenting this prettified source to the user? If HTML, and you can access the raw HTML, various workflow possibilities arise.

    Does the editor have the ability to export or save the prettified to RTF, Word, PDF, HTML, etc?

    Does the editor have at least have the ability to print the prettified code? Print to PDF and import, then.

    Legend
    August 11, 2014

    Yup, that makes sense – I've included views from my preferred XML/DITA environment with the "print to .pdf" option, and very smart they look too :-}