jwulf / press-star

A node-based implementation of the popular Death Star authoring environment for PressGang / Docbook
4 stars 1 forks source link

Syntax highlighting of </command> is off. #40

Closed xsgordon closed 11 years ago

xsgordon commented 11 years ago

When presented with a construct such as <command>rm -rf /</command> the syntax highlighter colors the closing element in red (invalid). This doesn't impact on *actual validation/saving but is visually distracting. Because the syntax highlighter appears to consider this invalid also tends to mark trailing elements in the same fashion, for instance in this block:

<para>
    The volume storage service makes use of the SCSI target daemon, <command>tgtd</command>, when mounting storage. To support this the <command>tgtd</command> service must be configured to read additional configuration files.
</para>

Both of the closing </command> elements and the closing </para> appear in red in the editor, presumably because the syntax highlight considers the <command> construct to still be open.

jwulf commented 11 years ago

It's the command tag that triggers this behaviour.

On Thursday, May 30, 2013, Steve Gordon wrote:

When presented with a construct such as rm -rf /* the syntax highlighter colors the closing element in red (invalid). This doesn't impact on actual\ validation/saving but is visually distracting. Because the syntax highlighter appears to consider this invalid also tends to mark trailing elements in the same fashion, for instance in this block:

The volume storage service makes use of the SCSI target daemon, tgtd, when mounting storage. To support this the tgtd service must be configured to read additional configuration files.

Both of the closing elements and the closing appear in red in the editor, presumably because the syntax highlight considers the construct to still be open.

— Reply to this email directly or view it on GitHubhttps://github.com/jwulf/press-star/issues/40 .