GitXplorerGitXplorer
d

highlight-code-element

public
2 stars
0 forks
0 issues

Commits

List of commits on branch gh-pages.
Unverified
d482103a4ef1035547e229851daae3bc48dc956a

Update README.md

ddeepak1556 committed 11 years ago
Unverified
43f028d10624f3ade92d553b39f3532354bb9f09

Update README.md

ddeepak1556 committed 11 years ago
Unverified
297c4c4f6c0502eb655c09c29577a5762e682755

Update highlight.html

ddeepak1556 committed 11 years ago
Unverified
350e61ed04d422d4969bcf0ae4d067ff757b998d

Update index.html

ddeepak1556 committed 11 years ago
Unverified
3a8835c3802dcdd38cfbbaf3278a2894a4f7de1e

completed style changes

ddeepak1556 committed 11 years ago
Unverified
074f7046afc9b01124cfbd55d75c2e6f1f654a01

added anothr example

ddeepak1556 committed 11 years ago

README

The README file for this repository.

<highlight-code>

A web component wrapper to highlight code snippets in any webpage using highlighterJs.

Maintained by Robo.

Demo

Check it live.

Usage

  1. Import Web Components' polyfill:

    <script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.0.20130711/polymer.min.js"></script>
  2. Import Custom Element:

    <link rel="import" href="src/highlight.html">
  3. Start using it!

    <highlight-code></highlight-code>

Options

Attribute Options Default Description
height int 500 The height of snippet container
width int 500 THe width of snippet container
tabreplace string Overwrite default tab spaces '4'

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

License

MIT License