Table of Contents

Syntax #


Purpose #

The s.code annotation tags a single span as being a code element within a paragraph. This is used to pick out a single piece of code from within a paragraph. This allows you to preserve and propagate code-specific formatting to code snippets within paragraphs.

Examples #

The following is an example of a time where you might want to use the s.code annotation:

The following is an example of a rule that will apply s.code:

The following is an example of the DITA output you would get from this annotation.


<p>When setting the OMNIMARK_INCLUDE variable under UNIX, paths should be separated by a colon. For details on setting environment variables, consult the documentation for your shell or contact your system administrator. You can prevent OmniMark from searching the directories named in the environment using the <codeph>-noenvarg </codeph>(or <codeph>-noea</codeph>) command line option. If you want a specific OmniMark program to use a different set of include files or modules, you can specify their location on the command line using the <codeph>-i </codeph>command line option.</p>