Comments (2)
As far as I can find, this isn't controlled by the extension. Syntax highlighters return only a small set of token types to the theme to colour (eg: functions, keywords, strings, comments, etc...)
Single line comments, block comments, docstring, etc... all get injected as "comments" and get themed with the same color. Therefore, I don't think this feature is possible.
However, I have found a workaround. You can override themes in your user settings. In the extension doc comments are specified with the scope comment.line.documentation
which you can override with your own color. For example:
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "comment.line.documentation.zig",
"settings": {
"foreground": "#ffd650"
}
}
],
}
from vscode-zig.
This isn't within the scope of this extension.
It's very common for color theme extensions to handle this for the user, emitting normal comments as one color and doc comments in another. For example, I maintain a color theme extension and I do this. It's extremely trivial to implement and improves developer experience.
All information needed to customize the token colors based on whether it is a doc comment or regular comment is being emitted. Users and extensions can customize the colors used, and @Swoogan posted the "fix" 4 years ago.
Since there has been no activity since, I think this issue could probably be closed.
from vscode-zig.
Related Issues (20)
- empty symbols panel for many zig std library files HOT 1
- zls settings are ignored if zig is not found in path
- Support substituting environment variables in path settings HOT 1
- Support syntax highlighting in Markdown fenced code blocks HOT 1
- Stop OUTPUT panel from popping up on fmt errors HOT 2
- zig.path has a default of `null` when it is declared as a string
- Feature Request: Command for generation of .vscode/tasks.json and .vscode/launch.json
- Ask to add zig to PATH if installed via the extension HOT 4
- Missing function suggestions for numeric atomic HOT 1
- Regession: formatter is broken in v0.5 HOT 4
- Plugin stops working when the source contains an unnamed test HOT 3
- automatically append .exe to `zig.path` on windows
- Unable to install ZLS 0.11.0 for Zig version 0.11.0 HOT 1
- impossible to build with automatically installed zig version HOT 1
- Auto installing zig / zls writes to the global settings json HOT 2
- Unable to update Zig HOT 1
- The extension no longer automatically starts ZLS HOT 2
- Version 0.5.3 does not work with remote-ssh on the Mac system HOT 6
- double '@' HOT 6
- Backwards compatibility of extension settings and ZLS config HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-zig.