Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting in editors ? #3

Open
DjebbZ opened this issue Aug 12, 2013 · 5 comments
Open

Syntax highlighting in editors ? #3

DjebbZ opened this issue Aug 12, 2013 · 5 comments

Comments

@DjebbZ
Copy link
Contributor

DjebbZ commented Aug 12, 2013

May not be the best palce to ask, but do you guys have syntax highlighting of fbp files in your favorite editors ? I'm using Sublime Text (2/3) and couldn't find an official fbp syntax highlighter. Would make life easier (although it's not top-priority and could be something made by the community).

@d4tocchini
Copy link
Contributor

@bergie, who was it that made progress with this?

@bergie
Copy link
Member

bergie commented Jan 2, 2014

Here is a vim FBP highlighter: https://github.com/ninegrid/vim-fbp

In action:

screenshot 2014-01-02 at 21 52 36

@paulyoung
Copy link

I started on a syntax definition last night. It's a .tmLanguage so it should work with TextMate, Sublime, and Atom.

I'm putting some finishing touches to it and then going to figure out how to package it up.

Some screenshots from Sublime Text with the Tomorrow Night Eighties theme:

screen shot 2014-05-14 at 12 05 00

screen shot 2014-05-14 at 12 05 18

screen shot 2014-05-14 at 12 05 31

screen shot 2014-05-14 at 12 05 53

screen shot 2014-05-14 at 12 14 09

@paulyoung
Copy link

The current version is slightly different to the above screenshots and also has support for exporting ports (including legacy exports).

For reference:

For anyone looking at the source code - the tmLanguage format is pretty cryptic, and isn't as sophisticated as something like PEG.js, so there's likely a better way to achieve what I've done so far. That said, it should work as expected.

If anyone has feedback or runs into problems, please create an issue for the .tmbundle since that's the source for everything else.

@bergie
Copy link
Member

bergie commented Nov 16, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants