-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
(javascript) Member functions are not highlighted in ES6 classes #1987
Comments
Yes, we only know it's a function if it uses the If we highlighted
|
Not sure there is any great way to do this, but flagging it as feature and needs help if someone motivated comes along. |
I just looked to see how Prism solves this (if they do) and they solve it just by coloring both invocations and definitions the same... ie, making no distinction... once you stop worrying about that it's easy to just match the Of could we could add some distinction, but I still think these would be "title"s... perhaps Thoughts? I think we should perhaps consider the same or else I'm considering closing this as a "cant fix". |
Closing as "cantfix". We simply can't distinguish these from function dispatch (which we do not highlight), so there is no way for us to know these are function definitions. I may go ahead and remove the special hard-coded If we did decide to highlight function invocation in the future then these would pick up some color from that, but that is really a separate concern unrelated to this issue directly. |
This is how I use highlight.js in React (combined with marked), but I find that the functions are not highlighted:
and this is how it looks like after rendered(functions are not highlighted ):
The text was updated successfully, but these errors were encountered: