-
Notifications
You must be signed in to change notification settings - Fork 5
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
Source colorization customization? #13
Comments
Also, is it possible to remove the underlines for tokens? -- they make it difficult to read snake_case variables. And there are probably a few other small customizations that would improve the UI. If you can point me to where colorization, underlining, comment-handling is done, then I can make a PR. |
Underhood uses CodeMirror, so most of the coloring option of that or its themes apply. Coloring: Source code colorization now seems to be fixed to One could either get the language by using a mapping based on the file extension (see Underline: It is hardcoded in The nice thing here would be to add a tickbox somewhere about underlining(likely in some settings dialog), bound to a (Note: I like to have the underlines since it shows what you can not click, which is usually suspicious of the indexer. To give the original motivation). |
The Kythe schema has a convention that the language for a file node is empty. I've raised a question about this: kythe/kythe#4246 I agree that for debugging, it's useful to see what items have anchors. |
I've opened two items in the Kythe project for languages and colorization: |
The Of course, indexers have to support this. ;) |
I tried changing https://github.com/TreeTide/underhood/blob/develop/treetide/underhood/ui/src/App.vue#L217 to |
In
so likely yes. |
This worked (but needs to be parameterized of course):
|
Is there a way to colorize the sources displayed by Underhood?
When I display Python source, it correctly colorizes (for example)
print
,if
,for
; incorrectly colorizesmap
(but does allow it as an anchor); and doesn't colorizedef
,not
,in
.Also, it would be nice if there were a way to customize display of comments and to turn off colorization within them.
=== Edit by @robinp below
The text was updated successfully, but these errors were encountered: