Skip to content

Commit

Permalink
#203 - added the code highlighter section to the README file
Browse files Browse the repository at this point in the history
  • Loading branch information
alphadevx committed Sep 28, 2015
1 parent b904b1b commit 33db4ca
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,15 @@ A data cache is provided, that provides a factory and injectable providers that

### Code highlighting

TODO
The _Alpha\Util\Code\Highlight\HighlightProviderFactory_ providers objects for converting plain source code into code-highlighted HTML source code. Providers for the Geshi and Luminous libraries are provided. Here is an example:

use Alpha\Util\Code\Highlight\HighlightProviderFactory;

// ...

$highlighter = HighlightProviderFactory::getInstance('Alpha\Util\Code\Highlight\HighlightProviderGeshi');

$html = $highlighter->highlight($code, 'php');

### Email

Expand Down

0 comments on commit 33db4ca

Please sign in to comment.