codeblock line numbers
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 1
- Joined: Wed Jul 09, 2014 1:22 am
codeblock line numbers
Post by jupiters1117 »
Hi, is there a way to add line numbers for codeblock? Thank you.
-
- Posts: 9444
- Joined: Fri Jul 09, 2004 5:18 pm
Re: codeblock line numbers
Hi,
This is not available right now.
Do you want this for publishing or for editing the codeblock sections?
If you want this for publishing, do you want this for the PDF or for the XHTML-based outputs?
Regards,
Radu
This is not available right now.
Do you want this for publishing or for editing the codeblock sections?
If you want this for publishing, do you want this for the PDF or for the XHTML-based outputs?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 6
- Joined: Mon Mar 06, 2017 5:20 pm
Re: codeblock line numbers
Hi, it is now possible to add line numbers in code blocks.
DITA OT 2.3.3 and higher has the following code in pr-domain.xsl -
If both values in this code are set to true, the pdf plugin will generate line numbers in code blocks.
DITA OT 2.3.3 and higher has the following code in pr-domain.xsl -
Code: Select all
<xsl:variable name="codeblock.wrap" select="true()"/>
<xsl:template match="node()" mode="codeblock.generate-line-number" as="xs:boolean">
<xsl:sequence select="true()"/>
</xsl:template>
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