Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mavimo/prism-monokai-php
Add monokai theme to PrismJS and better support for PHP language.
https://github.com/mavimo/prism-monokai-php
Last synced: about 2 months ago
JSON representation
Add monokai theme to PrismJS and better support for PHP language.
- Host: GitHub
- URL: https://github.com/mavimo/prism-monokai-php
- Owner: mavimo
- License: other
- Created: 2013-12-29T12:15:10.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-29T15:44:57.000Z (about 11 years ago)
- Last Synced: 2024-12-01T04:52:12.007Z (2 months ago)
- Language: JavaScript
- Size: 523 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Prism monokai PHP
Add [monokai theme](http://www.monokai.nl/blog/2006/07/15/textmate-color-theme/) to [PrismJS](http://prismjs.com) and better support for PHP language.
I use Sublime Text 3 as my default text editor and I love the Monokai theme that
is available. Some elements are not higlighted in Prism and is not possibile style
PHP code as visibile in ST3.This package implements some new rules and override other to have better syntax
highlight and add monokai theme.## Demo
Sublime Text 3:
![monokai ST3](demo/monokai-st3.png)
Prism with prism-monokai-php:
![monokai Prism](demo/monokai-prism.png)
## Usage
After include prism and other PHP language detection script, add also the ```prism-monokai-php.min.js```. This enable some new element higlight. To enable Monokai theme add also the ```prism-monokai-php.min.css```:
```html
```## Development
Install dependencies using bower and npm:
```bash
npm install
bower install
```
change what do you need in src folder and use grunt to regenerate the output files:```bash
grunt
```