Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlighting language #91

Open
Ciboulette opened this issue Apr 28, 2017 · 1 comment
Open

Highlighting language #91

Ciboulette opened this issue Apr 28, 2017 · 1 comment

Comments

@Ciboulette
Copy link

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
Copy link

ShinjiIkari83 commented May 2, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants