Chess Stack Exchange is a question and answer site for serious players and enthusiasts of chess. Join them; it only takes a minute:

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

In Notepad++ or similar editors, one can get syntax highlighting for multiple file formats/languages. I'd like to have something usable on Windows that would let me do this with pgn files (see header tags, and annotations in different colors from main line moves).

share|improve this question

There is an extension for Vim (a great editor) that provides syntax highlighting for PGN. You can download Vim here. You can find the extension here.

share|improve this answer
I have used this before and it works pretty well. The only issue I see is if you are not used to Vim, it may take a bit. – xaisoft Jan 25 '13 at 19:08
There is a nice tutorial on Vim here that is worth reading. – Seth Jan 25 '13 at 19:19
Thanks! Yes, Vim was not my first pick. But it works. However it does not highlight textual annotations. Only move numbers and game header tags. – Joe Jan 25 '13 at 19:37
up vote 5 down vote accepted

Notepad ++ with option Language->Pascal highlights headers, move numbers, actual moves and comments with different colors. Works exactly as I would expect.

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.