WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The wordpress tag is used to display code on a page (refer to: http://themeforward.com/demo2/2011/09/12/code-tags-in-post/) but I am having a hard time finding a function that will number the lines of code, as seen on http://themeshaper.com/2009/07/02/wordpress-theme-search-page-template-tutorial/

Does anybody know where this function can be found?

share|improve this question
up vote 2 down vote accepted

To get syntax highlighting with line numbering, you'll need to use a plugin like SyntaxHighlighter Evolved. In fact, looking at the source of that second link, it appears that they are using SyntaxHighlighter Evolved themselves.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.