brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

[CLOSED] Syntax highlighting for Jade #2846

Open core-ai-bot opened 3 years ago

core-ai-bot commented 3 years ago

Issue by yoshuawuyts Sunday Mar 03, 2013 at 01:07 GMT Originally opened as https://github.com/adobe/brackets/issues/3024


Hi, could syntax highlighting for Jade be added? Right now it's just grey text where my html seems a little more lively.

core-ai-bot commented 3 years ago

Comment by GarthDB Sunday Mar 03, 2013 at 05:05 GMT


Jade syntax highlighting could totally be added. If you'd like to start working on a Jade extension take a look at the LESS Extension.

Also, we'd need a Jade mode for CodeMirror.

core-ai-bot commented 3 years ago

Comment by peterflynn Monday Mar 04, 2013 at 22:37 GMT


Right -- the CodeMirror "mode" is what actually provides syntax highlighting. Since no highlighting "mode" exists yet for Jade, creating one would be the first step. Here are the docs for writing CodeMirror modes.

The second step would be, following the example of the LESS extension, to actually add that "mode" to Brackets and register it to a list of file extension(s).

core-ai-bot commented 3 years ago

Comment by pthiess Wednesday Mar 06, 2013 at 18:47 GMT


This is a nice idea, but not a priority for the core team. We would envision this built as an extension by the community.

core-ai-bot commented 3 years ago

Comment by dbratcher Friday Jun 21, 2013 at 03:13 GMT


Hey, if anyone is still interested, I've built a jade syntax highlighting extension here: https://github.com/dbratcher/brackets-jade.

core-ai-bot commented 3 years ago

Comment by GarthDB Friday Jun 21, 2013 at 06:37 GMT


@dbratcher sweet! You should totally separate out the Jade mode and contribute it to Code Mirror as well.

Thanks for doing this.

core-ai-bot commented 3 years ago

Comment by dbratcher Monday Jun 24, 2013 at 05:55 GMT


Thanks for the tip. Here is the pull request: https://github.com/marijnh/CodeMirror/pull/1631.

core-ai-bot commented 3 years ago

Comment by GarthDB Monday Jun 24, 2013 at 17:58 GMT


@dbratcher and it's already merged, congrats!