Pages: 1
Print
Author Topic: Colored code snippets  (Read 1938 times)
plumblei
Member

Posts: 3


« on: February 20, 2013, 11:37:05 AM »

We're in the process of converting our documentation from doc to DITA. Now, we have all code snippets colored in the Eclipse IDE style, which makes them more readable. Is there any easy way to paste these snippets to DITA topics in XMetal?
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #1 on: February 21, 2013, 02:05:19 PM »

Which deliverable (output type) do you want this to "look nice" in?
Can I assume your code snippets are inside <codeblock> elements?

For HTML there are a couple of JavaScript + CSS scripting solutions for making code snippets look nice.
For PDF there are some XSLTs that can be integrated into the DITA OT transformation process to add styling for code snippets.

These are projects outside the DITA OT but can be added to it.
Logged
Pages: 1
Print
Jump to:  

email us