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

How to add your language syntax? #164

Open
trollqaa opened this issue Dec 24, 2015 · 16 comments
Open

How to add your language syntax? #164

trollqaa opened this issue Dec 24, 2015 · 16 comments

Comments

@trollqaa
Copy link

trollqaa commented Dec 24, 2015

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.
Thank you in advance.

--- 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).
@darealshinji
Copy link
Contributor

nqq uses CodeMirror for syntax highlighting, which is based on Javascript: https://github.com/notepadqq/CodeMirror

@trollqaa
Copy link
Author

Excuse me, but I'm far from it. You can help the porting XML from a NPP in NQQ?

@darealshinji
Copy link
Contributor

I could take a look at it, but I can't promise anything. Do you have an amxmodx pawn document that I can use?

@trollqaa
Copy link
Author

Excuse me, what documentation is required?
There is only a description of the functions. But I do not think that's what you need.
In fact, you just need to port this syntax and all.
Autosubstitution not required, because there is always something to add. Sometimes it does not deliver what you need =)

@darealshinji
Copy link
Contributor

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.

@trollqaa
Copy link
Author

That is one of the plugins
If you need more, I can throw.
afk_control.sma.zip

@trollqaa
Copy link
Author

Hello.
Not viewed?
Several projects hangs from the inability to work fine under Linux. We have to work on Windows, and then switch to linux: D

@darealshinji
Copy link
Contributor

The syntax C-like, so you can change the language highlighting to something like C++ or C#.

@trollqaa
Copy link
Author

I understand that, but you know, when you write something, is not uncommon errors in the name of the function / native, and so on.
It is difficult to work :)

@trollqaa
Copy link
Author

Just if you find it difficult or particular desire not, you tell me.
I will think then towards other editors

@danieleds
Copy link
Member

@neygomon as @darealshinji said, you should refer to CodeMirror: https://github.com/codemirror/CodeMirror
That's where syntax highlighters get implemented.

@trollqaa
Copy link
Author

@danieleds, I would gladly have made myself, if you would understand how and what to do.
And also, it does not create issue, if there was at least some documentation for migrating from NPP XML syntax to NQQ

@trollqaa
Copy link
Author

Bump =)

@danieleds
Copy link
Member

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!

@trollqaa
Copy link
Author

Well, you can do it?
Not for free, of course ...

@trollqaa
Copy link
Author

trollqaa commented Mar 6, 2016

Bump!

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

3 participants