Tags to not format
Are you missing a feature? Request its implementation here.
Tags to not format
Post by neilhart »
When I format my XML docbook doc in the Eclipse plugin there are parts I don't want their format changed like:
<programlisting>
/**
* //class javadoc
* $Author$, $Revision$, $Date$
* <!--
* $Log$
* -->
**/
</programlisting>
Can anything be done for this?
<programlisting>
/**
* //class javadoc
* $Author$, $Revision$, $Date$
* <!--
* $Log$
* -->
**/
</programlisting>
Can anything be done for this?
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi,
Oxygen handles xml:space attribute but the Docbook DTD does not allow xml:space. There is a RFE here that request this addition to Docbook DTD.
What you can do is to put the content in a CDATA section like below:
and it will be left unchanged by the pretty print operation.
On the desktop version there is also a light indenting option that just indent tags on the same line, probably that will be offered soon also in the Eclipse plugin version.
Best Regards,
George
Oxygen handles xml:space attribute but the Docbook DTD does not allow xml:space. There is a RFE here that request this addition to Docbook DTD.
What you can do is to put the content in a CDATA section like below:
Code: Select all
<programlisting><![CDATA[
/**
* //class javadoc
* $Author$, $Revision$, $Date$
* <!--
* $Log$
* -->
**/
]]></programlisting>
On the desktop version there is also a light indenting option that just indent tags on the same line, probably that will be offered soon also in the Eclipse plugin version.
Best Regards,
George
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