Dani 4,084 The Queen of DaniWeb Administrator Featured Poster Premium Member

As you guys know, there is a code snippet highlighter that works both in the forums using the [code=language] [/code] tags as well as in our Code Snippet library.

Due to changes that have been made to the highlighter, it is now required for highlighting functionality that the code be wrapped in whatever may be required to start and end code for the particular language.

For example, the following is an example of how the <? and ?> are required to parse PHP code. Both of the below snippets are set to use the PHP syntax highlighter.

echo "test";
<? echo "test"; ?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.