DITA and XMetaL Discussion
XMetaL Community Forum › DITA and XMetaL Discussion › Colored code snippets
-
plumblei February 20, 2013 at 5:37 pm
Colored code snippets
February 20, 2013 at 5:37 pmParticipants 0Replies 1Last Activity 9 years, 11 months agoWe'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?
Derek Read February 21, 2013 at 8:05 pm
Reply to: Colored code snippets
February 21, 2013 at 8:05 pmWhich deliverable (output type) do you want this to “look nice” in?
Can I assume your code snippets are insideelements? 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.
-
AuthorPosts
- You must be logged in to reply to this topic.