Moonscript support in rouge

11 views
Skip to first unread message

Nils Nordman

unread,
Oct 18, 2013, 3:11:58 AM10/18/13
to moonscript-users
Hi,

this list has been quiet for a while, so I thought I'd share something moonscript-related :)

I've just added moonscript support to rouge (https://github.com/jayferd/rouge), "A pure-ruby code highlighter that is compatible with pygments". The background is that I settled on middleman for generating a site with documentation and needed moonscript support for markdown code blocks, and the middleman syntax plugin uses rouge. With this it's now possible to embed Moonscript in markdown as in Github, etc.:

```moonscript
-- my moonscript code
```

A rendered example can be seen here: http://nordman.org/tmp/middleman-moonscript.png

Cheers,

--
Nils Nordman <ni...@nordman.org>

Nils Nordman

unread,
Oct 18, 2013, 3:19:38 AM10/18/13
to moonscript-users
Oh, I forgot to mention that it will take some time before the dependency chain is updated to the point that this will work out of the box with middleman. Should anyone want to use this before that it's possible to override the middleman dependencies and use it right away - if so drop me a note.

Cheers,

--
Nils Nordman <ni...@nordman.org>

leaf corcoran

unread,
Oct 18, 2013, 11:28:21 AM10/18/13
to Nils Nordman, moonscript-users
Awesome, looks good.


--
You received this message because you are subscribed to the Google Groups "MoonScript Users" group.
To post to this group, send email to moonscri...@googlegroups.com.
Visit this group at http://groups.google.com/group/moonscript-users.

Reply all
Reply to author
Forward
0 new messages