koka-lang / madoko

Madoko is a fast markdown processor for high quality academic and technical articles
Other
393 stars 42 forks source link

'perl' is not a language for code block? #5

Open dayfuaim opened 7 years ago

dayfuaim commented 7 years ago

If I write (<code clock> is replacement for triple backtick within code block):

<code clock>perl
  blah...
</code clock>

I get the warning and the error:

Warning: document.mdk:21: unknown language: perl
Error: could not register language: perl

How could I register the language for code blocks?

MikaelMayer commented 7 years ago

I suggest you submit a pull request with a language file for PERL here: https://github.com/koka-lang/madoko/blob/master/styles/lang/

You may try your language file yourself before submitting it by running Madoko locally: https://github.com/koka-lang/madoko#using-madoko

MikaelMayer commented 7 years ago

Oh even better, you can put your JSON language file directly into the folder to test it. On the menu on the top right, insert file > language colorizer.