https://github.com/create3000/jekyll-x3d
Adds support for X3D syntax highlighting to Jekyll. This allows developers to easily integrate and display X3D content within their Jekyll-powered websites.
https://github.com/create3000/jekyll-x3d
Last synced: 26 days ago
JSON representation
Adds support for X3D syntax highlighting to Jekyll. This allows developers to easily integrate and display X3D content within their Jekyll-powered websites.
- Host: GitHub
- URL: https://github.com/create3000/jekyll-x3d
- Owner: create3000
- License: mit
- Created: 2024-12-06T15:58:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-18T22:40:10.000Z (about 1 year ago)
- Last Synced: 2025-04-14T03:08:29.415Z (11 months ago)
- Language: Ruby
- Homepage: https://rubygems.org/gems/jekyll-x3d
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
README
# jekyll-x3d
[](https://badge.fury.io/rb/jekyll-x3d)
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`:
```ruby
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.
```yml
kramdown:
syntax_highlighter: rouge
```
Now you can highlight your source code in Markdown as X3D:
``````md
```x3d
<![CDATA[ecmascript:
// foo
function initialize ()
{
const a = new MFString ("abc");
}
]]>
```
``````
## See Also
* [jekyll-vrml](https://github.com/create3000/jekyll-vrml)
* [X_ITE X3D Browser](https://create3000.github.io/x_ite/)
* [web3d.org](https://www.web3d.org)