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

Update Language Support wiki page with examples #13330

Open
core-ai-bot opened this issue Aug 31, 2021 · 2 comments
Open

Update Language Support wiki page with examples #13330

core-ai-bot opened this issue Aug 31, 2021 · 2 comments

Comments

@core-ai-bot
Copy link
Member

Issue by MarcelGerber
Monday Aug 10, 2015 at 08:26 GMT
Originally opened as adobe/brackets#11573


The Language Support page, especially the Defining a new language part, could use some improvements.
The aforementioned section does not contain any examples of how exactly to "load it using require(), register it with CodeMirror using CodeMirror.defineMode(), then call LanguageManager.defineLanguage() as above".
Thus, I'd suggest to add some examples here (for both the CodeMirror.defineMode() and CodeMirror.defineSimpleMode() methods of doing it).

Also, I'm unsure if we still need the Notes on "language" support (as of Sprint 21) section on this user-facing wiki page.

@core-ai-bot
Copy link
Member Author

Comment by petetnt
Monday Aug 10, 2015 at 20:11 GMT


Oh yeah, that was the page that I was reading some time ago and thought that it needs some work (and then promptly forgot about it...)

👍 for nuking the Notes on... section too. (or at least moving it to another document, at this point I'd say it's just noise).

@core-ai-bot
Copy link
Member Author

Comment by foice
Tuesday Aug 11, 2015 at 13:22 GMT


Hello, the example I have been pointed at
https://gist.github.com/sprintr/0a6dafd7204fd4002c39
is a great bootstrap.

I am now seeking for code to have SimpleCode to find empty lines and highlight the whole line and for activating code folding when certain reg-exp are found.

Is line-highlight and code-folding available in SimpleCode? or is it too simple ??

Thanks for reading
Roberto

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

No branches or pull requests

1 participant