Giter Club home page Giter Club logo

sublime-behat-syntax's Introduction

Sublime Behat Syntax Highlight

Installation

Use Package Control or Clone the repo in your personal Sublime Text 3 Packages folder.

Basic usage

The syntax highlighting will be automatically applied to .feature files.

The Behat syntax highlight can be found in the menu under View > Syntax > Behat.

Screenshot

Here's an example of how the plugin highlights Behat code:

Behat Feature Highlighting

sublime-behat-syntax's People

Contributors

omissis avatar arcturial avatar tomav avatar fmcorz avatar nek- avatar stidges avatar

Stargazers

 avatar Joaquín-Gabriel Molina Goigoux avatar Dimas avatar alianhha avatar Ian Channing avatar Fabio Di Sotto avatar Leolando Tan avatar Andrea Sangiorgio avatar Augustin Delaporte avatar Greg Kaleka avatar LaiQiang Ding avatar 720 avatar Francisco Caballero avatar Ludovic BERLEMONT avatar Matteo Magni avatar Maurizio Brioschi avatar Igor Moiseev avatar Damon Haley avatar Attila Beregszaszi avatar Easy avatar Vincenzo avatar  avatar Erwin Maulana Saputra avatar Hubert Moutot avatar Michele Orselli avatar

Watchers

 avatar Damon Haley avatar James Cloos avatar Roberto Peruzzo avatar  avatar

sublime-behat-syntax's Issues

Step keyword highlighting not working in Subl3

I'm using beat in sublime text 3, and step keywords (Given, And, Then, etc) are not being highlighted.

Possibly due to my theme? Using Seti.sublime-theme with Facebook.tmTheme coloring.

screen shot 2015-08-16 at 12 43 53 pm

Error Loading Syntax File

Getting this error message when trying to add sublime-behat-syntax to Sublime Text 2 (Version 2.0.2 Build 2221)

Steps to reproduce:

  • Clone repo to Sublime Text 2 Packages folder
  • Open Sublime Text

Sublime text actually deletes this repo from its packages folder after experiencing this error. I'm guessing this is normal behavior when experiencing such an error, but I don't have enough experience with sublime to be sure.

I upgraded to Sublime Text 3 and had no problems installing.

behat-sublime-error

Screenshot

Any chance to add a screenshot to provide a comparison with the other behat package?

Escaped quotes can break highlighting

If an escaped double quote isn't closed, it breaks syntax highlighting. I use ST3

Here is a screengrab:
behat

Feature: DFP tags
  In order to help ensure that our ad trafficking targets are achieved
  As an Ad Ops Manager
  I want to ensure that the correct dart tag information is displayed.

  @adverts @dfp @19248 @indexes @smoke
  Scenario Outline: Check that site contains dart tags on all pages.
    Given I am on "<url>"
    Then the response should contain "googletag.defineSlot(\"/999/www.example.co.uk/"
    Then the response should contain "googletag.display(\"dfp-ad-leaderboard_1\")"

  Examples:
    | url                               |
    | /video                            |
    | /news                             |
    | /exercises/celebrity-workouts     |

  @adverts @dfp @19248 @adunits @smoke
  Scenario Outline: Check that page contains 2 ad units.
    Given I am on "<url>"
    Then the response should contain "googletag.defineSlot(\"/999/www.example.com/foo//bar"

  Examples:
    | url            |
    | /foo/bar       |

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.