Skip to content
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

Syntax Highlight tokens. #20

Open
rediffusion opened this issue Mar 7, 2020 · 0 comments
Open

Syntax Highlight tokens. #20

rediffusion opened this issue Mar 7, 2020 · 0 comments

Comments

@rediffusion
Copy link

rediffusion commented Mar 7, 2020

✋Hello, dear friend first of all thanks for your great theme (I use it every day).
I have a couple of question I'm hoping you'll find ⌚ time to respond to them.

📝 ## ISSUE WITH BOLD.

1. For some tokens, the colors do not change:

C++

image

his tokens are:

keyword.operator
keyword.operator.delete.array.cpp

image
for these symbols ::
his tokens are:

punctuation
punctuation.separator.scope-resolution.constructor.cpp

Dart

code looks like this: <int>

image

his tokens are:

keyword.operator
keyword.operator.comparison.dart

2. If the "fontStyle": "bold" then the adjacent (brackets square and curly and other keywords and in general "all code") become an automatic "BOLD".
Question is... why all code bolded❓

C++

if I set "bold" only for "w", code:

image

C

if I set "bold" only for "key", code:
image

his tokens are:

source
meta.block.c

Python

if I set "bold" only for "one", code:

image

his tokens are:

source
source.python

Ruby

if I set "bold" only for "mutex", code:

image

his tokens are:

source
source.python

📝 ## THE HIGHLIGHTING OF A PARTICULAR WORD.

1. Why one TOKEN highlights everything... if, else, else if, return, break, ExitApp, Exit, Try, Continue .etc

How for one 1 keyword set his "own diffrent color" and make this trick for all languages❓ For example, for these files (languages):

.ahk
keyword.control.ahk
.c
keyword.control.c
.go
keyword.control.go
.java
keyword.control.java
.lua
keyword.control.lua
.py
keyword.control.flow.python
.rust
keyword.control.rust
.vb
keyword.control.asp

🔹With C# have no problem, you can highlight each keyword separately. Like this:

keyword.control.conditional.if.cs
keyword.control.loop.foreach.cs
keyword.control.conditional.else.cs
keyword.control.flow.return.cs

P.S. ··· also with C++ have no problem.

2. How to set for false red for true green color❓ For these files (languages) I find only 1 token and it colors both in one color 😞

With C# have no problem
.ahk
support.type.builtin.ahk
.dart
constant.language.dart
.rb
constant.language.ruby
.rs
constant.language.boolean.rust
.vb
constant.language.asp
.json
constant.language.json.comments

🔹 With C# no problem, you can highlight each keyword separately. For example, like this:

constant.language.boolean.true.cs
constant.language.boolean.false.cs

3. We got... library, getwd, setwd, round, cor, subset, plot, hist, abs, cor, cbind, var - how to highlight var
.dart - we got the token:
storage.type.primitive.dart
.py - we got the token
support.function.r

🔹 With C# no problem can only be highlighted var. For example, like this:

keyword.other.var.cs

4. For key points and alliances =, +, ==, <=, or, and, not, .., *, #. For all these, I find this token:

keyword.operator.lua

...but if I don't wanna colored words like "or, and, not" what I should do❓

🔹 With C# no problem, you can highlight each keyword separately. For example, like this:

keyword.operator.assignment.cs
keyword.other.new.cs
keyword.operator.arrow.cs
keyword.operator.comparison.cs
keyword.operator.null-coalescing.cs
keyword.operator.logical.cs
keyword.operator.relational.cs
keyword.operator.arithmetic.cs

5. For AutoHotkey (.ahk), ··· how to highlight: , $, @ ❓

📝 ## COMMENT.

1. For .ahk, .dart, .rs for these tokens:

comment.block.slashstar.ahk
comment.block.dart

…how to use the backlight only on the beginning and end of a comment, not the whole text❓
In other languages, it is implemented as follows:

punctuation.definition.comment.begin
punctuation.definition.comment.end

2. For TypeScript I find that commenting like so /// comment that has the ability to highlight each word, how can we do the same for all languages❓

image

📝 ## FOR THOSE LANGUAGES for which HIGHLIGHTING does not work!

.mysql, .wasm - the syntax highlighting doesn't work. Any recommendation for it❓


This is THE END, best regards! 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant