www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - How to edit colors of syntax highlight in Code-D for VS Code

reply Andrey <saasecondbox yandex.ru> writes:
Hello,
How to edit colors of syntax highlight in Code-D for VS Code 
(https://github.com/Pure-D/code-d)?
Where colors, where indents, where spaces setup?
Notepad++ can do it.
Apr 03 2019
next sibling parent Seb <seb wilzba.ch> writes:
On Wednesday, 3 April 2019 at 08:56:22 UTC, Andrey wrote:
 Hello,
 How to edit colors of syntax highlight in Code-D for VS Code 
 (https://github.com/Pure-D/code-d)?
 Where colors, where indents, where spaces setup?
 Notepad++ can do it.
You probably want to ask this on the respective GitHub page for Code-D or on the respective Discord channel as this subforum is not closely monitored by all editor authors.
Apr 03 2019
prev sibling parent reply WebFreak001 <d.forum webfreak.org> writes:
On Wednesday, 3 April 2019 at 08:56:22 UTC, Andrey wrote:
 Hello,
 How to edit colors of syntax highlight in Code-D for VS Code 
 (https://github.com/Pure-D/code-d)?
 Where colors, where indents, where spaces setup?
 Notepad++ can do it.
hi, I think the only way to edit the syntax highlighting in VS Code is to edit the plugin itself (for code-d this would be at https://github.com/Pure-D/code-d/blob/master/syntaxes/d.json) See also: https://stackoverflow.com/questions/40175795/how-to-add-keywords-syntax-highlighting-t -language-extension (the changes are not permanent and not really good to maintain, try getting them in upstream instead)
Apr 03 2019
parent reply Jacob Carlborg <doob me.com> writes:
On 2019-04-03 22:08, WebFreak001 wrote:

 hi, I think the only way to edit the syntax highlighting in VS Code is 
 to edit the plugin itself (for code-d this would be at 
 https://github.com/Pure-D/code-d/blob/master/syntaxes/d.json)
 
 See also: 
 https://stackoverflow.com/questions/40175795/how-to-add-keywords-syntax-highlighting-t
-language-extension 
 (the changes are not permanent and not really good to maintain, try 
 getting them in upstream instead)
For the colors. Doesn't VS Code have themes to control this? -- /Jacob Carlborg
Apr 04 2019
parent WebFreak001 <d.forum webfreak.org> writes:
On Thursday, 4 April 2019 at 09:43:48 UTC, Jacob Carlborg wrote:
 On 2019-04-03 22:08, WebFreak001 wrote:

 hi, I think the only way to edit the syntax highlighting in VS 
 Code is to edit the plugin itself (for code-d this would be at 
 https://github.com/Pure-D/code-d/blob/master/syntaxes/d.json)
 
 See also: 
 https://stackoverflow.com/questions/40175795/how-to-add-keywords-syntax-highlighting-t
-language-extension (the changes are not permanent and not really good to
maintain, try getting them in upstream instead)
For the colors. Doesn't VS Code have themes to control this?
themes will change entire types and you can't really change the grammar if you find something annoying (like for example types and names having the same color) But if OP just wants different colors then themes would be the way to go yes
Apr 04 2019