Project

jekyll-x3d

0.0
The project is in a healthy, maintained state
Adds support for X3D syntax highlighting to Jekyll. Enables automatic highlighting of X3D XML code blocks in documentation and blog posts, making 3D scene descriptions easier to read and understand. Supports syntax highlighting for embedded script and shader nodes.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

jekyll-x3d

Gem Version

Adds support for X3D syntax highlighting to Jekyll. Enables automatic highlighting of X3D XML code blocks in documentation and blog posts, making 3D scene descriptions easier to read and understand. Supports syntax highlighting for embedded script and shader nodes.

Usage

Add the following lines to your Gemfile:

group :jekyll_plugins do
  gem 'jekyll-x3d', '~> 1.0'
end

After this, run bundle install; bundle update.

In your _config.yml you need to specify that you want to use rouge as syntax highlighter.

kramdown:
  syntax_highlighter: rouge

Now you can highlight your source code in Markdown as X3D:

```x3d
<Script DEF='Example'>
<![CDATA[ecmascript:
// foo
function initialize ()
{
   const a = new MFString ("abc");
}
]]>
</Script>
```

See Also