-
Notifications
You must be signed in to change notification settings - Fork 298
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
How to add your language syntax? #164
Comments
nqq uses CodeMirror for syntax highlighting, which is based on Javascript: https://github.com/notepadqq/CodeMirror |
Excuse me, but I'm far from it. You can help the porting XML from a NPP in NQQ? |
I could take a look at it, but I can't promise anything. Do you have an amxmodx pawn document that I can use? |
Excuse me, what documentation is required? |
I just need code in that amxmodx pawn format for testing so that I can check if the syntax highlighting in NQQ is the same as in NPP. |
That is one of the plugins |
Hello. |
The syntax C-like, so you can change the language highlighting to something like C++ or C#. |
I understand that, but you know, when you write something, is not uncommon errors in the name of the function / native, and so on. |
Just if you find it difficult or particular desire not, you tell me. |
@neygomon as @darealshinji said, you should refer to CodeMirror: https://github.com/codemirror/CodeMirror |
@danieleds, I would gladly have made myself, if you would understand how and what to do. |
Bump =) |
It's not possible to migrate XMLs from Notepad++ to Notepadqq. They're completely different formats. The best way is to write it from scratch. This is the CodeMirror documentation for writing modes (aka syntax highlighters): https://codemirror.net/doc/manual.html#modeapi And this is an example of a syntax highlighter for makefiles written by a Notepadqq contributor: https://github.com/notepadqq/CodeMirror/blob/5.3.0-nqq/mode/makefile/makefile.js Happy coding! |
Well, you can do it? |
Bump! |
Hello.
How to add your wonderful editor Notepadqq add syntax amxmodx pawn?
This language is for the editor Notepad ++.
XML-language file attaching http://pastebin.com/30R7yZ0M
I hope, will be able to add.
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/29385021-how-to-add-your-language-syntax?utm_campaign=plugin&utm_content=tracker%2F346321&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F346321&utm_medium=issues&utm_source=github).Thank you in advance.
The text was updated successfully, but these errors were encountered: