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

API to use the SciTE "machine" for defining lexer arguments #17

Open
minesworld opened this issue Jan 10, 2025 · 0 comments
Open

API to use the SciTE "machine" for defining lexer arguments #17

minesworld opened this issue Jan 10, 2025 · 0 comments

Comments

@minesworld
Copy link

minesworld commented Jan 10, 2025

In the SciTE sources there are ton of language definitions as scite\src\***.properties files just waiting to be used.

For most users those defaults would be fine. So an API could look like:

  • having a LexStyleProperties class
  • which can read the scite\src\***.properties
  • create the lexer from that
  • and the style definitions, with an option to give another Styling class instance which defines the colors to be used and can be shared between different lexers
  • have some calls to use the "other" stuff definid in the properties files, like the file endings etc.

Don't know how much effort this is, didn't dive into the SciTE sources yet. Maybe there is something like that already there.

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

1 participant