Skip to content

llupa/SolutionCodeMirrorBundle

This branch is 16 commits ahead of f1nder/SolutionCodeMirrorBundle:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

judmir.karriqillupa
judmir.karriqi
and
Feb 4, 2021
492b1cb · Feb 4, 2021

History

67 Commits
Feb 15, 2013
Jul 2, 2019
Feb 4, 2021
Jul 2, 2019
Jan 26, 2021
Jan 26, 2021
Oct 20, 2015
Feb 15, 2013
Dec 18, 2013
Feb 6, 2013
Jan 26, 2021
Jan 26, 2021

Repository files navigation

SolutionCodeMirrorBundle Build Status

Integration CodeMirror editor in you symfony2 project.

###Install

Just add the following line to your projects composer.json require section, and update vendors:

"nitrado/code-mirror-bundle": "dev-master"

Enable bundle , add to AppKernel.php:

 new Solution\CodeMirrorBundle\SolutionCodeMirrorBundle()

###Configuration Add default parameters to config.yml:

twig:
    form:
        resources:
            - 'SolutionCodeMirrorBundle:Form:code_mirror_widget.html.twig'

assetic:
    bundles:
        - # ... other bundles
        - SolutionCodeMirrorBundle

solution_code_mirror:
    parameters:
        mode: text/html
        lineNumbers: true
        lineWrapping: true
        theme: base16-dark
    mode_dirs:
        - @SolutionCodeMirrorBundle/Resources/public/js/mode
    themes_dirs:
        - @SolutionCodeMirrorBundle/Resources/public/css/theme

Install assets:

$ ./app/console assets:install web --symlink

###Usage

 $builder->add('content', 'code_mirror', array(
    'required' => true,
    'parameters' => array(
         'lineNumbers' => 'true'
     )
 ));

About

Integration CodeMirror in you symfony2 project.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 76.5%
  • CSS 20.4%
  • PHP 2.9%
  • Twig 0.2%