Home › Forums › General XMetaL Discussion › List of XM processing instructions › Reply To: List of XM processing instructions
Reply to: List of XM processing instructions
January 16, 2009 at 11:14 pmYou can do something like this very easily by making up your own PIs. Since they will be “known” only by you, they should be ignored by the DITA OT and other processors. You can add custom CSS so that XMetaL will display them distinctively during editing. For example:
Put this PI in your document:
[code]
[/code]
Add this to your CSS:
[code]
$procins[xm-pi-target=”kmartin7″] {
display: inline;
color: Red;
background: Yellow;
}
[/code]
(“Add to which CSS?”, you might justifiably ask. In theory you should probably add it to every one of the DITA/XACs/[topicname]/[topicname]_ditabase-specialized.css files. In practice, I would probably add it just once, to DITA/XACs/ditabase/ditabase-base-override.css, and then hopefully remember that when I upgrade/repair my XMetaL installation this file may be overwritten.)
Note about adding these in XMetaL: You can add “custom” PIs using Insert > Advanced > Processing Instruction. The very next thing you type should be the target (“kmartin7”) then space, then the rest of the content. The PI will initially be styled with the default PI colors. To have your overriding colors kick in, change between Normal/Tags On after you finish typing the PI target name.