Udon Syntax Highlighter Bounty Test Environment
https://github.com/jfranklin9000/udon-highlighter
http://jfranklin9000.com/udon-highlighter
https://jfranklin9000.com/udon-highlighter (self-signed certificate)
-
The deliverable is
CodeMirror/mode/udon/udon.js
. -
Command line
php
is required to process new tests.
git clone https://github.com/jfranklin9000/udon-highlighter.git
cd udon-highlighter
urbit -F zod
|mount /=home=
mkdir -p zod/home/web
ln -s `pwd`/static-site zod/home/web/static-site
snips/*.snip
and udons/*.udon
are the udon sources.
make
|commit %home
|static
make css
The final html files are in iframes/
.
The iframes/
files are the contents of
files in cms/
and rendered/
in html
iframes. These can be opened from your
hard drive, no web server required.
Edit a .snip
or create a new one in snips/
.
If you create a new .snip
add it to the Makefile
.
Do the same with a .udon
in udons/
.
make
|commit %home
|static
make css
A .snip
(in snips/
) should start and end with two
blank lines and not contain front matter, ;>
or block
code literals.
A .udon
(in udons/
) can have front matter and block
code literals, and must have a ;>
.
snips/example.snip
with two snips:
The udon parser eats a single blank line (if it exists)
at the start of a block code literal, so the udon parser
rendering of this doc only shows one blank line at the
start of snips/example.snip
. There should be two!
UDON-1
-- -- -- --
UDON-2
make
will run tools/snip.php
and produce static-site/example.udon
:
The escaped tics will actually be tics.
;>
\`\`\`
UDON-1
\`\`\`
UDON-1
---
\`\`\`
UDON-2
\`\`\`
UDON-2
---
make clean
This deletes file in static-site/
, rendered/
, cms/
and iframes/
.