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
[GDScript]Sometimes highlight wrongly #2448
Comments
Please confirm you are manually specifying GDscript as the language and not using auto-detect. It looks like an auto-detect failure because of how many times you use "Call" and "function" in your comments... and if that's the case there isn't anything we can do about it - you'd need to manually specify that the language is GDscript rather than trying to let us guess. |
yeah,I specify the language is GDScript |
Please provide a JSFiddle the reproduces this problem outside your environment so we can see exactly what you're doing. You can fork my example:
Right now I'd say either you're mistaken or you're running into some weird issue with your environment, not Highlight.js. That's very obviously not just confusing the comments but seems to be highlighting with an entirely different language, which is exactly what would happen if you were using highlightAuto. |
This error happens in a software called vnote,a markdown editor.(https://github.com/tamlok/vnote)
The developer of vnote use highlight.js to highlight the code block in markdown files if users specify the language,otherwise,
Vnote won't try to highlight the code block.
The GDScript.md is the file I found highlight error,I delete other statements and save all code blocks,the two pictures is the highlight result on my computer.
The error may in vnote,I'll try to solve it with its developer.You can ignore it if it's not the wrong of highlight.js after you check it.
|
That seems to be a third party language module. If you're having a problem with it please report it to the modules author directly: https://github.com/highlightjs/highlightjs-gdscript
I have no idea where this GDscritp.md file you speak of might be. |
Thanks.
|
Look like this ,highlight.js may highlight the comments and ignore the statements
The text was updated successfully, but these errors were encountered: