Skip to content

Commit 222781c

Browse files
author
Jan Bílek
authored
Merge pull request #8 from robbieaverill/patch-1
Add section to the readme explaining how to enable non-JavaScript language highlighting
2 parents 71cf429 + 9a03624 commit 222781c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,15 @@ To give the highlighter a window look in a directive mode, also don't forget to
6666
In order to visually higlight your code, you need to select a theme from `./node_modules/vue-code-highlight/themes/` and import it somewhere into your component/application. These are just regular prism themes, so feel free to improvise.
6767

6868
![themes](/public/themes.png)
69+
70+
## Other languages
71+
72+
Any of the [supported languages](https://prismjs.com/index.html#supported-languages) in Prism may be used. To enable support
73+
for them, you must import them explicitly as well as Prism's markup templating.
74+
75+
For example, to include PHP highlighting in your application:
76+
77+
```jsx
78+
import 'prism-es6/components/prism-markup-templating';
79+
import 'prism-es6/components/prism-php';
80+
```

0 commit comments

Comments
 (0)