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

Is that possible to add new language? #47

Closed
wangjun-sh opened this issue Sep 15, 2022 · 3 comments
Closed

Is that possible to add new language? #47

wangjun-sh opened this issue Sep 15, 2022 · 3 comments
Labels

Comments

@wangjun-sh
Copy link

Is that possible to allow user add new language?

In the library option, there is a popup window "Edit languages". However there is no option to add new language.

In the repo, this SQL says "Language" table is only for reference:
https://github.com/ffes/nppsnippets/blob/master/misc/Languages.sql

thanks, John

@ffes ffes added the question label Sep 15, 2022
@ffes
Copy link
Owner

ffes commented Sep 15, 2022

If you mean that you want support for UDL, that seems to be impossible at the moment. See #43 for support on UDL.

For all other languages NppSnippets relies on the languages that are programmed into N++ itself and there is nothing I can do about. So adding a language to the database doesn't help because N++ won't recognize the language in the file and there will be no LangType attached to that file. And that N++ builtin LangType is the key for the language support that NppSnippets uses.

@wangjun-sh
Copy link
Author

Yes I mean UDL (user defined language).

  • John

@ffes
Copy link
Owner

ffes commented Sep 18, 2022

Yes I mean UDL (user defined language).

Thanks for the feedback. Therefore, I close this as a dup of #43

@ffes ffes closed this as completed Sep 18, 2022
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

2 participants