Giter VIP home page Giter VIP logo

cucumber-attic / gherkin-syntax-highlighters Goto Github PK

View Code? Open in Web Editor NEW
23.0 28.0 10.0 570 KB

Syntax highlighters for Gherkin source

Home Page: http://cucumber.github.com/gherkin-syntax-highlighters/

License: MIT License

C# 0.06% Standard ML 0.21% PHP 2.28% Prolog 0.14% OCaml 0.16% C++ 0.34% C 0.03% Java 0.23% Ruby 0.79% Shell 0.43% Scala 0.18% Perl 11.13% JavaScript 83.51% Tcl 0.10% Python 0.15% Component Pascal 0.06% Haxe 0.19%

gherkin-syntax-highlighters's Introduction

I18n Gherkin syntax highlighting for several highlighting engines:

Examples are here.

Hacking

First, install dependencies:

git submodule update --init --recursive
gem install gherkin

Each syntax highlighter has a template named template.erb that you can edit. You can then regenerate a highlighter with e.g.

rake highlight.js/gherkin_en.js

To regenerate all of the highlighters, run:

rake

The shjs modes don't have a template.erb as they are generated from the src-highlight modes.

Contributing

If you have fixed something, commit it to your fork of the repo and send a pull request.

gherkin-syntax-highlighters's People

Contributors

aslakhellesoy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gherkin-syntax-highlighters's Issues

Support JIRA Syntax Highlighter PlugIn

The plugin's home page is here and the source is on bitbucket.

It uses Alex Gorbachev's SyntaxHighlighter and the source is on github

If someone wants to add support for it, I recommend the following:

  1. Implement it in this repo, using the i18n code generation techniques you see for other engines
  2. Create a pull request in SyntaxHighlighter, copying over the generated code

If it's accepted and SyntaxHighlighter makes a new release, it's time to make a pull request in the JIRA Syntax Highlighter PlugIn, more specifically in SyntaxHighlighterMacro.java.

In other words - a lot of work.

Numbers should only be highlighted when alone

Example:

When trader requests legging of 3 SSM3-SSU3 / 0.050

The 3 in SSM3-SSU3 should not be highlighted. It should only be highlighted when there is a space (or EOL) on each side

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.