# Lisp symbols not highlighted correctly

Exhibit A:

The symbol d_n+1 is highlighted as the variable d_n, operator+, and 1. This is incorrect; the symbol should be all one color.

• This will probably have a higher chance of getting fixed if you report this on the prettify issue tracker. – sepp2k Mar 23 '11 at 15:40

First, make sure the correct language highlighter is being used.

If the question is tagged that should be correct, but verify that the code class is correct in Google Chrome inspector.

For example on Cube root (Newton's method) which is tagged and I see the divs correctly have lang-lisp on them:

If this is not the case, try to fix the tags first and remember diamond mods can change the prettify language per-tag on the tag page.

If it's not fixable through tags (say the question is tagged or something) then you can manually specify the language, like so

<!-- language: lang-or-tag-here -->

code goes here


It's very important you have the linebreak there.

If you've done this and the highlighting is still weird, indeed it must be filed as a bug against Google Code Prettify.

• The question in question is definitely highlighted as lisp (it says <pre class="lang-lisp prettyprint"> in the HTML source and everything else in the code sample (e.g. the defun keyword which is pretty lisp specific) is highlighted correctly). So this is indeed a bug in prettify's lisp highlighting. – sepp2k Mar 23 '11 at 23:33