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

Lacks support for GLSL #52

Open
N0rdskog opened this issue Oct 16, 2022 · 2 comments
Open

Lacks support for GLSL #52

N0rdskog opened this issue Oct 16, 2022 · 2 comments

Comments

@N0rdskog
Copy link

Would be much appreciated! This plugin is a godsend otherwise.

@Remyuu
Copy link

Remyuu commented Dec 20, 2023

Here is a simple way can help you.

Go .../.obsidian/plugins/cm-editor-syntax-highlight-obsidian

Find the file main.js

Add the following code at Line 122

 {name: "Glsl", mime: "text/x-csrc", mode: "clike", ext: ["c", "h", "ino"]},
image

@Remyuu
Copy link

Remyuu commented Dec 20, 2023

But like vector, matrix types, specific function and variables might not be highlighted correctly...

C renderer

vec3
gl_FragColor
clamp()

Glsl Renderer

vec3
gl_FragColor
clamp()

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

2 participants