Socket
Book a DemoInstallSign in
Socket

idecoder

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idecoder

0.1.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

Idecoder gem

Gem Version

Idecoder was created for developers building web applications with coding editors. Idecoder provides a plugin that gives the developer a screen inside their own app to give the users a way to develop codes.

Installation

Add this line to your application's Gemfile:

gem 'idecoder'

And then execute:

$ bundle

Or install it yourself as:

$ gem install idecoder

Usage

Simply add the render_idecoder helper method to your Rails layout or to any specific page you wish. after installing, go to " / idecoder" for testing screen:

Alt text

  <html>
  <head>...</head>
  <body>
    <h1>My Content</h1>
    ...
    <%= render_idecoder %>
  </body>
  </html>

To add options to the Idecoder plugin, simply pass them as a Hash to the helper method:

  # Switching to Haml
  %html
    %head
      ... something ...
    %body
      %h1 Any content
      ... something ...
      
      = render_idecoder {language: 'sql', read_only: 'false'}

If you wish to have Idecoder in your production and/or staging environment, pass the last argument of false:

  = render_idecoder {language: 'ruby', read_only: 'false'}, false

Options

ValueDefaultDescription
moderubySee Language Options List
thememonokaiSee Themes Options List
height300pxCanvas height
width90%Canvas width
border'1px solid lightgray'Border style
read_onlytrueDoes not allow the user to make changes in databases

Language Options

ValueDescription
htmlDesign Html
javascriptJavascript
rubyRuby Language

Theme Options

ValueDescription
ambianceAmbiance
chaosChaos
chromeChrome
cloudsClouds
clouds_midnightClouds Midnight
cobaltCobalt
crimson_editorCrimson Editor
dawnDawn
dreamweaverDreamweaver
eclipseEclipse
githubGithub
idle_fingersIdle Fingers
krKR
merbivoreMerbivore
merbivore_softMerbivore Soft
mono_industrialMono Industrial
monokaiMonokai
pastel_on_darkPastel On Dark
solarized_darkSolarized Dark
solarized_lightSolarized Dark
textmateTextMate
tomorrowTomorrow
tomorrow_nightTomorrow Night
tomorrow_night_blueTomorrow Night Blue
tomorrow_night_brightTomorrow Night Bright
tomorrow_night_eightiesTomorrow Night Eighties
twillightTwillight
vibrant_inkVibrant Ink
xcodeXCode

Dependencies

Idecoder has a dependency on:

  • gem execjs (sstephenson/execjs)

Contributing

  • Fork it ( https://github.com/popolin/idecoder/fork )
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

FAQs

Package last updated on 11 Sep 2020

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.