rstacruz / flatdoc

Build sites fast from Markdown

Home Page:http://ricostacruz.com/flatdoc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Highlighting language

Ciboulette opened this issue · comments

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

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.