Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prism-rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prism-rails

  • 1.29.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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

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

FAQs

Package last updated on 02 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc