geforcelegend / vscode-glsl Goto Github PK
View Code? Open in Web Editor NEWGLSL (OpenGL Shading Language) Syntax for Visual Studio Code
License: MIT License
GLSL (OpenGL Shading Language) Syntax for Visual Studio Code
License: MIT License
How would I tell to apply syntax highlighting to a custom filename extension?
When using https://github.com/stef-levesque/vscode-shader if you start typing words get recommended that come from included files, this is especially useful when having a global config file for all defines that you include everywhere.
This is the only thing I'm missing from this extension and this is how it currently looks:
On line 409 of the glsl.tmLanguage.json
file, there seems to be a typo for \\bgl_Back(Vertex|Instance)|...
, which should be \\bgl_Base(Vertex|Instance)|...
. If this is intended then the gl_Base*
variables should be added to the regex.
I don't know how this works in VSCode, but with Markdown, highlighting of other languages can be injected like this:
I have vscode-glsl
installed, but even after restarting VSCode, the GLSL snippet is still not highlighted. I write docs with a lot of GLSL in them, it would be useful to have this to reduce mistakes.
First great extension, I like how it is simple and just does one thing and does it good.
Anyway, there is one more thing I would like, that is when there are things like #define and #ifdef etc,
#ifdef WHATEVER
code
code
code
#endif
Would be greyed out of the certain value is not defined.
The thing that makes this more complex however is some things might be defined extern like with:
#ifdef GL_ES
precision highp float;
precision highp int;
#endif
So it might be good to have in the settings for the extension that an array of certain things can be defined.
This should also be a workspace option, cause in one project I might like a certain thing always defined while in another project I want not.
I hope I'm clear, and I hope someone is willing to make this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.