Skip to content

Polymer element wrapping CodeMirror (highlighting syntax, plugins and options)

License

Notifications You must be signed in to change notification settings

loicmarie/code-area

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<code-area>

Polymer element wrapping CodeMirror (highlighting syntax, plugins and options)

alt text

How To

Install with Bower:

bower install loicmarie/code-area

Then you wan use it as follow:

<code-area mode="javascript" line-numbers></code-area>

See official Polymer element documentation for more details on element and online demonstration. See also CodeMirror documentation for more configurable options

PRs are welcome !

Install the Polymer-CLI

First, make sure you have the Polymer CLI installed. Then run polymer serve to serve your application locally.

Viewing Your Application

$ polymer serve

Building Your Application

$ polymer build

This will create a build/ folder with bundled/ and unbundled/ sub-folders containing a bundled (Vulcanized) and unbundled builds, both run through HTML, CSS, and JS optimizers.

You can serve the built versions by giving polymer serve a folder to serve from:

$ polymer serve build/bundled

Running Tests

$ polymer test

Your application is already set up to be tested via web-component-tester. Run polymer test to run your application's test suite locally.

About

Polymer element wrapping CodeMirror (highlighting syntax, plugins and options)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages