A code block syntax highlighter for BDScript, ForgeScript, and aoi.js.
-
Include the Highlighter:
Ensure the following script and stylesheet links are included at the bottom of your website, right before the closing
</body>
tag:<script src="path/to/bdshighlighter.js"></script> <link rel="stylesheet" href="path/to/styles/style-dark.css">
-
Add Language Tags to Code Blocks:
To enable syntax highlighting, specify the appropriate language tag within the
class
attribute of your<code>
blocks, as shown below:<pre><code class="lang-tag"> // Your code here </code></pre>
bdscript
forgescript
(in development)aoi
(in development)
-
Available Styles:
Choose your preferred theme by linking one of the following stylesheets:
style-dark.css
style-light.css
- Finalize colors and optimizations for BDScript.
- Add support for ForgeScript.
- Add support for aoi.js.
Originally made by @.koomball and Modified by me (@clyders).