Skip to content

balibali/opRichTextareaSyntaxHighlightPlugin

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
web
 
 
 
 
 
 
 
 
 
 
 
 
opRichTextareaSyntaxHighlightPlugin is a code syntax highlight plugin for OpenPNE3,
using SyntaxHighlighter a well-known highlighter developed in JavaScript.

LICENSE
-------

See LICENSE file

INSTALLATION
------------

1. Put the source code in the OpenPNE's plugins directory
2. Run ``php symfony plugin:publish-assets``
3. Run ``php symfony cc``

USAGE
-----

Write ``<op:source>`` tag in the rich textarea with the "lang" attribute.

ex::

  <op:source lang="php">
  function foo()
  {
    // it works!
  }
  </op:source>

If you want to know the "lang" list, see the `SyntaxHighlighter / Brushes`_.

.. _`SyntaxHighlighter / Brushes`: http://alexgorbatchev.com/wiki/SyntaxHighlighter:Brushes

About

A code syntax highlight plugin for OpenPNE3

Resources

License

Stars

Watchers

Forks

Packages

No packages published