Cucumber:Gherkin syntax highlighting for Notepad++

### Introduction
Sometimes I want to edit a .feature file and don’t have Visual Studio handy, so I decided to create a syntax highlighter for [Notepad++][1].


To install it, simply download and extract it. Open Notepad++ and open the *User Defined* dialogue from the *View* menu. Click on import and browse to the extracted Gherkin.xml file. If you open a .feature file from Notepad++, it should now have some color coding.

Posted in Blog, Develop
  • George Petrov

    Hi, it seems that download is no longer available. I downloaded it some time before but now I can’t. Is it fixable or am I missing something?

    • JacoSwarts

      Hi George

      I moved service providers and something must’ve gone wrong. I’ll be sure to make it available again.

      [image: DISQUS]

      • shrikanth

        hi , how do i download this ?

        • JacoSwarts

          Just updated it, click the big download button above the second paragraph.

          • Matt Frear

            I can’t see the big download button.

          • JacoSwarts

            Seems that some update broke the button, should be back now.

  • Jeff Harding

    Hi. I don’t see “User defined” under View, but I do under “Language” but I don’t think that is the right one. I just uploaded the newest version of Notepad++ so maybe it changed. Thanks

    • JacoSwarts

      Hi Jeff
      I just upgraded my npp to and under the View menu, the last link of the second section is the one, its called “User-Defined Dialogue…”

  • Anton

    Thanks a lot for sharing this! I had to add it from under Languages menu.
    Language-Define your…-Import and then restart NPP and reopen feature files.

    • Ian Aldrighetti

      I’m using Notepad++ v6.7.7, and Anton is correct. It is NOT under View, it is under Language.

  • WS

    Is there a way to get the comments highlighted as green?

    • WS

      Not to worry, I have made a tweak that allows things to work slightly better in my cases…

      Line 13 becomes…

      1''' 2''' 0#

      Lines 27 and 28 become…


      • WS

        The single apostrophes should be HTML Encoded (').

        The casing of the attributes in the original post should be preserved and the WordsStyle attributes should be self closing.

        (The editor doesn’t play nicely trying to make these changes myself).

  • James Taylor

    I had an error when unzipping the download, until I explicitly used 7Zip.

  • Pingback: Are there any non-developer tools to edit gherkin files? | Ask Programming & Technology()

  • Fileheart

    Notepad ++ 6.8.2 Released For Download Click Here