Skip to content

Adds support for X3D syntax highlighting to Jekyll. This allows developers to easily integrate and display X3D content within their Jekyll-powered websites.

License

Notifications You must be signed in to change notification settings

create3000/jekyll-x3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jekyll-x3d

Gem Version

Adds support for X3D syntax highlighting to Jekyll. This allows developers to easily integrate and display X3D content within their Jekyll-powered websites. The advantage over XML highlighting is that the contents of script nodes and shader nodes are also highlighted.

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

About

Adds support for X3D syntax highlighting to Jekyll. This allows developers to easily integrate and display X3D content within their Jekyll-powered websites.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published