File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1+ run :
2+ echo " Starting at http://localhost:8000"
3+ python -m SimpleHTTPServer # Python2.7
4+ # python -m http.server 8000 # Python 3
Original file line number Diff line number Diff line change 11< link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css ">
22< script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js "> </ script >
3- < script src =" src/rascript.js " > </ script >
4- < script >
5- hljs . registerLanguage ( ' rascript' , RAScript ) ;
3+ < script type =" module " >
4+ import rascript from "./src/rascript.js" ;
5+ hljs . registerLanguage ( " rascript" , rascript ) ;
66 hljs . initHighlightingOnLoad ( ) ;
77</ script >
88< pre >
Original file line number Diff line number Diff line change 33 * Contributors:
44 * Joshua Raphael
55 */
6- function RAScript ( hljs ) {
6+ export default function ( hljs ) {
77 return {
88 case_insensitive : false ,
99 contains : [
You can’t perform that action at this time.
0 commit comments