An open API service indexing awesome lists of open source software.

https://github.com/schlaefer/philesyntaxhighlight

Syntax Highlight Plugin for PhileCMS
https://github.com/schlaefer/philesyntaxhighlight

philecms philecms-plugin

Last synced: 5 days ago
JSON representation

Syntax Highlight Plugin for PhileCMS

Awesome Lists containing this project

README

          

# Syntax Highlight Plugin for PhileCMS #

[![Build Status](https://travis-ci.org/Schlaefer/phileSyntaxHighlight.svg?branch=master)](https://travis-ci.org/Schlaefer/phileSyntaxHighlight)

Syntax highlight source code.

[Project Home](https://github.com/Schlaefer/phileSyntaxHighlight)

## 1.1 Installation (composer)

```json
"require": {
"siezi/phile-syntax-highlight": "*"
}
```

## 1.2 Installation (Download)

* download this plugin into `plugins/siezi/phileSyntaxHighlight`
* install and include Geshi 1.0.x

## 2. Activation

After you have installed the plugin you need to activate it. Add the following line to your `/config.php` file:

```php
$config['plugins']['siezi\\phileSyntaxHighlight'] = ['active' => true];
```

## 3. Start

In the standard Phile installation use [markdown fenced code blocks](https://help.github.com/articles/github-flavored-markdown/#fenced-code-blocks) and specify a language:

```php

$foo = bar;
```

### 4. Config

See `config.php`.