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 scheme for a new programming language which is unsupported by Notepad3 ? #1540

Closed
aks2161989 opened this issue Aug 18, 2019 · 4 comments
Labels

Comments

@aks2161989
Copy link

Hi,

This is a question, not a bug report.

First of all I would like to thank/congratulate you for developing this featureful editor. It opens in a jiffy and is very useful!

Is there a way to add syntax highlighting for a new programming language without recompiling Notepad3 ?

Regards,
Akshay

@RaiKoHoff
Copy link
Collaborator

Hello @aks2161989,
sorry, there is no way to add a new programming language syntax highlighting to Notepad3 w/o adding necessary program code to Notepad3 (and recompile).
Things to do:

  1. Choose a lexer from Scintilla repository (or code your own lexer like LexTOML.cxx)
  2. Code the corresponding lexer styles for keyword and features of the lexer.
  3. Add the new code to Notepad3's repository and build a new version.

There is a request to add a "generic" lexer to Notepad3 (#1135) with a configurable syntax/style definition, like Notepad++ has, but we don't have this yet.

@RaiKoHoff
Copy link
Collaborator

@aks2161989 : which programming language syntax highlighting are you missing ?

@hpwamr
Copy link
Collaborator

hpwamr commented Sep 27, 2019

Hello @aks2161989 ,
As far as I'm concerned, I think you (as requester) can close this issue...

@aks2161989
Copy link
Author

@RaiKoHoff Thank you for the clear instructions. You have solved my doubts.
Regards.

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

No branches or pull requests

3 participants