-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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 achieve custom highlighting of dynamic keywords? #5696
Comments
@nightwing would you be able to provide guidance here? |
there are several solved issues similar to this. e.g. #3905 If you want to add keywords to an existing mode, you can use the approach shown here |
Thank you very much for your reply. I will give it a try @andredcoliveira @nightwing |
@nightwing |
@mkslanc Thank you for your reply. I have checked and found that these are updates to the typescript declaration file, which do not involve specific implementation adjustments. Are you clear about implementing custom keyword highlighting in typescript? |
@yyhack110 Sorry for the confusion, those properties actually exist in the implementation; they are just not public. I used this merely as an example of an issue that could be resolved by allowing sealed classes to have index signatures. This would help address problems with private or additional properties in a class. As a temporary solution, until there would be better type system, you could use those properties with indexer access (if your config allows that). Example in playground |
@mkslanc |
@mkslanc |
Describe the issue
Hello, how can I achieve custom highlighting of dynamic keywords in a Vue3+ts project? I have been troubled for several days. How can I do it? The relevant information seems to be incorrect. Thank you!
I have tried many methods, but none of them have been effective, such as the one below:
Links
https://ace.c9.io/#nav=higlighter
The text was updated successfully, but these errors were encountered: