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

[wxWidgets] Missing Scintilla include files #44638

Closed
LegalizeAdulthood opened this issue Mar 27, 2025 · 1 comment
Closed

[wxWidgets] Missing Scintilla include files #44638

LegalizeAdulthood opened this issue Mar 27, 2025 · 1 comment
Assignees
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist

Comments

@LegalizeAdulthood
Copy link

LegalizeAdulthood commented Mar 27, 2025

Is your feature request related to a problem? Please describe.

When using wxStyledTextCtrl, the wrapper around the Scintilla editing control, if you want to implement your own custom lexer for syntax highlighting on a custom language, then you need the ILexer.h header file. The file ILexer.h includes Sci_Position.h, so you also need that. More specifically, you need the include files from the release of scintilla used by wxWidgets, which for wxWidgets 3.2.6 is Scintilla 3.7.2. In the wxwidgets 3.2.6 source tree, these are located at src/stc/scintilla/include.

Proposed solution

Install these additional headers with wxwidgets. They should probably be in a scintilla subdirectory?

Describe alternatives you've considered

As an alternative you can use FetchContent or git submodules to obtain the necessary version of the scintilla source tree to access the headers.

Additional context

No response

@LegalizeAdulthood LegalizeAdulthood added the category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist label Mar 27, 2025
@LegalizeAdulthood
Copy link
Author

Looking at this further, maybe this is the wrong approach. Upon deeper investigation of writing my own external lexer, you need more than just these two header files in order for it to be realistic. You need several other support classes provided by Scintilla in order to do this reasonably.

That implies that instead of getting this stuff from the wxWidgets port, I should be getting it from the Scintilla port.

Therefore, I'm going to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist
Projects
None yet
Development

No branches or pull requests

2 participants