Write API Guide using DITA
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 158
- Joined: Fri Nov 10, 2017 8:16 am
Write API Guide using DITA
Hi, I am trying to write an API guide using DITA. I find that API guide is quite different from other guides. We have a lot of comands, codes, and references in the guide.
Is there any guideline that I should follow when writing an API guide?
I found this page on your user guide: https://www.oxygenxml.com/dita/1.3/spec ... rence.html
I wonder how to write colorful codes in the element. and the there is a button at the top-right cornner of the element that users can copy the codes quickly. How to achieve this?
BTW, how did you make the title style to a grey background, or which element did you use?
Thanks for your any response.
Is there any guideline that I should follow when writing an API guide?
I found this page on your user guide: https://www.oxygenxml.com/dita/1.3/spec ... rence.html
I wonder how to write colorful codes in the
Code: Select all
codeblock
Code: Select all
codeblock
BTW, how did you make the title style to a grey background, or which element did you use?
Thanks for your any response.
-
- Posts: 846
- Joined: Mon Dec 05, 2011 6:04 pm
Re: Write API Guide using DITA
Hi catherine,
You can find more details about the "outputclass" attribute in the DITA Style Guide for Authors.
Regards,
Costin
For styling purposes, you can use the "outputclass" attribute on the <codeblock/> element. As the @outputclass attrobute specifies the role of an element in the output, you should choose the correct value for it. For <codeblock/> elements for example, content completion offers a number of languages (like "language-xml", "language-java", etc.) which you could use as values for the "@outputclass" attribute, so, depending on the syntax highlight you would need to have in the codeblock, you could choose the appropriate value (language).I wonder how to write colorful codes in theCode: Select all
codeblock
You can find more details about the "outputclass" attribute in the DITA Style Guide for Authors.
The button is present by default, when code blocks are used.and the there is a button at the top-right cornner of theelement that users can copy the codes quickly. How to achieve this?Code: Select all
codeblock
To achieve a similar styling with grey background, you could use the <codeph> element.BTW, how did you make the title style to a grey background, or which element did you use?
Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service