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

Add support for UDL #43

Open
EuropeanDeveloper opened this issue May 20, 2022 · 4 comments
Open

Add support for UDL #43

EuropeanDeveloper opened this issue May 20, 2022 · 4 comments

Comments

@EuropeanDeveloper
Copy link

Notepad++ supports creation of custom syntax-highlighting files, so-called UDL (User Defined Languages). If user has such file created, this language can't be used as Language for doc when snippet starts a new document. UDL can't be also set as library language.

@ffes
Copy link
Owner

ffes commented May 22, 2022

I have considered this, especially since Markdown is UDL. But so far I haven't been able to find a reliable way to support UDL. The main problem is to find out what definitions are installed and how to link that to a library.

@sunvis0r
Copy link

As an alternative solution (or as a feature), it would be nice if NPPSnippets had a parameter that switches the visibility of snippet libraries depending on the syntax of the current file. I installed custom UDL for SPARQL files, but after creating library I can't get access to this - there aren't SPARQL in "Language for doc:" list

@ffes
Copy link
Owner

ffes commented Aug 16, 2022

Could you be a bit more specific what you mean?

There is no way that I am aware of to get the UDL languages that are installed. How should I add them to the list of languages?

@sunvis0r
Copy link

sunvis0r commented Aug 17, 2022

This is not a direct solution, but it might help.
As I understand, two things depend on the choice of syntax (including UDL): which libraries will be displayed and which syntax will be (for a new document). If you can't get a list of installed UDLs, you can improve one of the corollaries of this: allow the user to choose which libraries should be displayed

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

No branches or pull requests

3 participants