Giter Site home page Giter Site logo

tannermccoleman / laravel-blade Goto Github PK

View Code? Open in Web Editor NEW

This project forked from medalink/laravel-blade

0.0 2.0 0.0 355 KB

This package adds syntax definitions for the Laravel 5 Blade engine.

Home Page: http://www.laravel.com

License: MIT License

PHP 100.00%

laravel-blade's Introduction

Laravel Blade Highlighter

This package adds syntax definitions for the Laravel 4 & 5 Blade engine.

Works with both Sublime Text 2 & Sublime Text 3.

How to install w/Sublime Package Control

Search for Laravel Blade and install it, it's just that simple.

Restart Sublime Text after you install this package.

For Laravel 3 please see the laravel3 branch. You can also check out our tags section for different Laravel versions.

Sublime Text Manual Install

  • Download or clone this repository into [install-dir]/Packages/laravel-blade
  • Restart Sublime Text.

Yeah but, show me what it is?

blade-example

Note: color may vary depending on theme. I use Predawn.

Compatible Laravel Extensions

Incompatible Plugins

Below are third-party plugins for Sublime Text that may cause the Laravel Blade highlighter to malfunction.

Please report issues with other plugins so I can either fix it or make note, thanks!

How to Contribute

  • To test a local version of the highlighter first uninstall the highlighter from package control.
  • Follow the manual installation process by cloning the repo into your packages directory.
  • Restart Sublime Text.
  • Open up the '[install-dir]/Packages/laravel-blade' folder into a new Sublime Text project.
  • Open up the laravel-blade.tmLanguage file and make changes.
  • I have provided a test.blade file that holds most of the common uses for testing the regex, use this to verify your changes before and after you make them to ensure the changes you make do not break anything.
  • Send a pull request with a single change per request.

A few things to note, please do not change any of the named strings. These are what directly affect the color and capturing priorities and could potentially break a lot of things. Unless you know what you are doing I would prefer these be left as is.

Examples of named strings:

  • punctuation.definition.comment.laravel-blade.php
  • comment.block.laravel-blade.php
  • support.constant.laravel-blade

Thanks for getting involved!

laravel-blade's People

Contributors

alexwhitman avatar anlutro avatar autokludge avatar cringerjs avatar joostk avatar juniorrosul avatar leonimuz avatar medalink avatar pcr-coding avatar pephers avatar thyyppa avatar uzegonemad avatar

Watchers

 avatar  avatar

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.