Skip to content

Commit e7f39fc

Browse files
author
Jan Bílek
committed
Merge branch 'master' of github.com:elisiondesign/vue-code-highlight
2 parents acc8b2a + 222781c commit e7f39fc

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)