Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Update Language Support wiki page with examples #11573

Open
marcelgerber opened this issue Aug 10, 2015 · 2 comments
Open

Update Language Support wiki page with examples #11573

marcelgerber opened this issue Aug 10, 2015 · 2 comments

Comments

@marcelgerber
Copy link
Contributor

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.

@petetnt
Copy link
Collaborator

petetnt commented Aug 10, 2015

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).

@foice
Copy link

foice commented Aug 11, 2015

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants
@marcelgerber @abose @petetnt @foice and others