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

Add Code Syntax Highlighting for MWScript #46

Open
MasssiveJuice08 opened this issue Jun 9, 2024 · 0 comments
Open

Add Code Syntax Highlighting for MWScript #46

MasssiveJuice08 opened this issue Jun 9, 2024 · 0 comments
Labels
enhancement New feature or request meta-style Style guidelines and planning for the wiki itself.

Comments

@MasssiveJuice08
Copy link
Contributor

MasssiveJuice08 commented Jun 9, 2024

About

Syntax highlighting can be applied to codeblocks in Obsidian and Quartz by denoting a language after the first three backticks, e.g., ```lua

Syntax highlighting for MWScript (though not directly supported by the Construction Set or by CSSE yet) would improve readability of MWScript code content on the wiki.

Implementation

Obsidian and Quartz use two separate libraries for their syntax highlighting. Quartz uses Shiki whereas Obsidian uses Prism. Implementing MWScript syntax highlighting would require adding a custom language for at least Shiki so it renders on the wiki website, but ideally for Prism as well.

Examples of MWScript Syntax Highlighting for Other Platforms

@MasssiveJuice08 MasssiveJuice08 added enhancement New feature or request meta-style Style guidelines and planning for the wiki itself. labels Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request meta-style Style guidelines and planning for the wiki itself.
Projects
None yet
Development

No branches or pull requests

1 participant