-
Notifications
You must be signed in to change notification settings - Fork 80
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 enable colors in typescript #32
Comments
Currently we just re-use the default Emacs faces for pretty much everything. You can see it here: https://github.com/ananthakumaran/typescript.el/blob/master/typescript-mode.el#L306-L317 I'm sure you'll find similar definitions if you scroll through the code. So in order to get the functionality you want,
Nobody is actively working towards this, but if you feel like putting in some work, PRs are very much welcome. |
I can help with this effort but not sure where to start can you guide me @josteink. |
Great! Any help and all contributions are very much appreciated! Basically you need to do a few things:
If you're new to this, it'll probably take a bit of time and effort, but all in all it shouldn't at any point involve anything fundamentally complex. |
Instead of reinventing the wheel, is there any way we can port the official syntax highlights from Typescript to emacs. |
That would be awesome. But given that we mostly have something which works right now though, I'm not going to put in the effort myself though. If anyone gets it done though, I would be all for it. |
This comment here is relevant to this issue: #78 (comment) Basically there seems there is a generalized solution to this problem which can be applied to all major-modes, instead of having every major-mode reimplement the same font-lock inheritance layering. As such, I'm inclined to close this issue as "won't fix" unless anyone can convince me otherwise. |
Based on closing #78, I've decided to close this issue too as "won't fix". Disagreement is OK, but then I'll need some really convincing arguments :) |
Hi, in js2-mode I see defface variables
and in my themes file I added
(js2-function-call (:foreground ,green))
to make the function call green.
Is there any similar way to add my theme specific colors for typescript. Thanks.
The text was updated successfully, but these errors were encountered: