Cucumber:Gherkin syntax highlighting for Notepad++

Posted by on March 23, 2011 in Blog, Develop | 7 comments

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++.

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.

  • 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] http://disqus.com

      • shrikanth

        hi , how do i download this ?

        • JacoSwarts

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

  • 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 5.9.6.2 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.