PHPackages                             rovak/codemirror - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rovak/codemirror

ActiveModule[Utility &amp; Helpers](/categories/utility)

rovak/codemirror
================

CodeMirror Module for Zend Framework 2

129PHP

Since Dec 15Pushed 13y ago1 watchersCompare

[ Source](https://github.com/Rovak/RovakCodeMirror)[ Packagist](https://packagist.org/packages/rovak/codemirror)[ RSS](/packages/rovak-codemirror/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CodeMirror View Helper
======================

[](#codemirror-view-helper)

CodeMirror intergration module for Zend Framework 2

By [Roy van Kaathoven](https://github.com/Rovak)

Introduction
------------

[](#introduction)

This module adds a view helper that enables you to easily add a codemirror editor to your website. It will add the required javascript files including any dependent mode files and adds a init function which will load the editor.

Requirements
------------

[](#requirements)

- [CodeMirror](https://github.com/marijnh/CodeMirror)

Installation
------------

[](#installation)

Configure the `lib_path` inside [module.config.php](https://github.com/Rovak/RovakCodeMirror/blob/master/config/module.config.php)to point to the root of the CodeMirror library

Usage
-----

[](#usage)

The headScript, headLink and inlineScript view helpers are required to be outputted in your view

```
