rstacruz / flatdoc

Build sites fast from Markdown
http://ricostacruz.com/flatdoc
2.68k stars 263 forks source link

Highlighting language #91

Open Ciboulette opened 7 years ago

Ciboulette commented 7 years ago

Hello folks,

I'm using flatdoc and I would like to have code highlighting when i write code part in php, like highlight.js do, is it possible ?

thanks

ShinjiIkari83 commented 7 years ago

Hello Ciboulette,

yes, thats possible. You can define your highlighting in the flatdoc.js (line:321).

Use this site for the regexpressions: "https://regex101.com/"

Use in the MD-File this for your code: "3 single quote" php PHP-Code "3 single quote"

I hope this infos helps.