Learn how to use Phiki with The PHP League’s CommonMark library.
league/commonmark
to parse and render Markdown in your PHP project, you can easily integrate Phiki using our custom extension.
withGutter
argument in the PhikiExtension
constructor.
PhikiExtension
constructor.
focus
class to the <pre>
element.start
and end
to mark the beginning and end of a range.
highlight
class to the corresponding line element.
If you don’t want to write out highlight
every time, you can use the hl
or ~~
shorthands instead.
focus
class to the corresponding line element.
focus
class to the <pre>
element.focus
every time, you can use the f
or **
shorthands instead.
editor.lineHighlightBackground
or editor.selectionHighlightBackground
color inside of your chosen theme(s) and add a CSS variable to the <pre>
element.
If it can’t find one, it will fallback to the default background color of the theme.
Those CSS variables are then applied to the line element the same as other styled elements.