Skip to content

prism-rails wraps the Prism.js library in a rails engine for simple use with the asset pipeline

License

Notifications You must be signed in to change notification settings

acharlop/prism-rails

Folders and files

NameName
Last commit message
Last commit date
May 26, 2016
Mar 2, 2024
Mar 2, 2024
Mar 4, 2020
Mar 2, 2024
May 25, 2016
Jan 3, 2017
Mar 2, 2024
Jan 3, 2017
Jan 3, 2017
Jan 26, 2023
Mar 2, 2024

Repository files navigation

prism-rails 1.29.0

prism-rails wraps the Prism.js library in a rails engine for simple use with the asset pipeline

Prism is a lightweight, robust, elegant syntax highlighting library.

Usage

Add the following to your application's Gemfile and run bundle install:

gem 'prism-rails'

Add the following to your Javascript manifest file application.js:

//= require prism

Add the css for the default styling application.css:

*= require prism

Themes

See Prism and prism-themes for examples.

For a full list of themes see below

//= require prism-plugin/prism-[plugin-name]

If necessary add the following to your application.scss:

*= require prism-plugin/prism-[plugin-name]

Versioning

prism-rails 1.6.0 == Prism.js 1.6.0 Every attempt is made to mirror the currently shipping Prism.js version number wherever possible. The major, minor, and patch version numbers will always represent the Prism.js version. Should a gem bug be discovered, a 4th version identifier will be added and incremented.

Contributing

Bug reports and pull requests are welcome on GitHub.

Contributors

@simmerz

License

The gem is available as open source under the terms of the MIT License.

Themes List

  • a11y-dark
  • atom-dark
  • autolinker
  • base16-ateliersulphurpool.light
  • cb
  • coldark-cold
  • coldark-dark
  • command-line
  • coy-without-shadows
  • coy
  • coy.min
  • darcula
  • dark
  • dark.min
  • dracula
  • duotone-dark
  • duotone-earth
  • duotone-forest
  • duotone-light
  • duotone-sea
  • duotone-space
  • funky
  • funky.min
  • ghcolors
  • gruvbox-dark
  • gruvbox-light
  • holi-theme
  • hopscotch
  • laserwave
  • line-highlight
  • line-numbers
  • lucario
  • material-dark
  • material-light
  • material-oceanic
  • night-owl
  • nord
  • okaidia
  • okaidia.min
  • one-dark
  • one-light
  • pojoaque
  • previewers
  • shades-of-purple
  • show-invisibles
  • show-language
  • solarized-dark-atom
  • solarizedlight
  • solarizedlight.min
  • synthwave84
  • tomorrow
  • tomorrow.min
  • toolbar
  • twilight
  • twilight.min
  • unescaped-markup
  • vs
  • vsc-dark-plus
  • wpd
  • xonokai
  • z-touch

Plugins List

Plugin CSS
autolinker
autoloader
command-line
copy-to-clipboard
custom-class
data-uri-highlight
diff-highlight
download-button
file-highlight
filter-highlight-all
highlight-keywords
ie8
inline-color
jsonp-highlight
keep-markup
line-highlight
line-numbers
match-braces
normalize-whitespace
previewer-angle
previewer-base
previewer-color
previewer-easing
previewer-gradient
previewer-time
previewers
remove-initial-line-feed
show-invisibles
show-language
toolbar
treeview
unescaped-markup
wpd

About

prism-rails wraps the Prism.js library in a rails engine for simple use with the asset pipeline

Resources

License

Stars

Watchers

Forks

Packages

No packages published