highlightjs / highlightjs-bbcode Goto Github PK
View Code? Open in Web Editor NEWbbcode - a language grammar for highlight.js
License: MIT License
bbcode - a language grammar for highlight.js
License: MIT License
This issue is being opened as part of our iniative to make all 3rd party grammars:
Please include a dist
folder that includes a ready-to-go CDN distributable that can be used with a single line of JS. IE, our simple 3 install should "just work" without any other code or markup:
<script type="text/javascript" src="/path/to/highlight.min.js"></script>
<script type="text/javascript" src="/path/to/highlightjs-bbcode/bbcode.js"></script>
<script type="text/javascript">hljs.highlightAll();</script>
Your README optimally would also document this usage. Please see the robots-txt
repository for a usage example.
Our build system can generate this file for you (and we recommend that). Using our internal build system also allows you to easily check your grammar for exponential or polynomical run-away regular expressions.
If you have any questions, feel free to ask!
Thanks,
Highlight.js Maintainer
You only have a single file now... which doesn't work with Node.js. Your source file should have a single export (the language function).. your distributable file should include the registerLanguage
call. See the robots-txt repository linked to above for examples (I see you forked from that repo).
IE, the src/languages/bbcode.js
file is the one you maintain (and can be required by Node.js, etc), and the dist/bbcode.min.js
file is the one that our build system would auto-generate for you.
This project is currently unmaintained and could use a new maintainer. If interested, please respond here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.