What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 130 Stack Exchange communities.

Hi, I think I found a bug in XML syntax highlighting. It happens when a node contains /* or /** as text. I don't know why, but I cannot reproduce the issue here in this question, but you can check this out in this question of mine:

Getting logged in users with a SessionRegistry

xml syntax highlight bug

share|improve this question

1 Answer 1

up vote 10 down vote accepted

The syntax highlighter uses the default one-size-fits-all Java version, since the question is tagged ; it doesn't know that this particular snippet is XML. If you specify the language by adding

<!-- language: lang-xml -->

before the code block, it works fine:

    <property name="filterInvocationDefinitionSource">
        <value>
            CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
            PATTERN_TYPE_APACHE_ANT
            /**=httpSessionIntegrationFilter,logoutFilter,exceptionTranslationFilter,concurrencyFilter
        </value>
    </property>

See the "syntax highlighting" section in the editing help.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .