Sha256: 4812cbdfcb4324db0d7d38571105bfa2dc728965508cf9e3a2f0f9e805a4810c

Contents?: true

Size: 580 Bytes

Versions: 16

Compression:

Stored size: 580 Bytes

Contents

// See http://pradador.com/code/lighterjs
window.addEvent("domready", function() {
  // Syntax highlight using Fuel.js.js and default theme
  // <pre id="code" class="js">var myClass = new Class({})</pre>

  // Syntax highlight using Fuel.ruby.js and theme from Flame.twilight.js
  // <pre id="code" class="ruby:twilight">puts "hi"</pre>

  // Highlight all "pre" elements with "code" class
  //$$('pre.code').light({ altLines: 'hover' });
  alert("X");
  $$("pre.code").each(function(element) {
    console.log(element);
    new Lighter(element, { altLines: 'hover' });
  });
})

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
pupu-0.2.1 examples/rango/media/javascripts/initializers/lighter.js
pupu-0.2 examples/rango/media/javascripts/initializers/lighter.js
pupu-0.1 examples/rango/media/javascripts/initializers/lighter.js
pupu-0.0.5.5 examples/rango/media/javascripts/initializers/lighter.js
pupu-0.0.5.4 examples/rango/media/javascripts/initializers/lighter.js
pupu-0.0.5.3 examples/rango/media/javascripts/initializers/lighter.js
pupu-0.0.5.2 examples/rango/media/javascripts/initializers/lighter.js
pupu-0.0.5.1 examples/rango/media/javascripts/initializers/lighter.js
pupu-0.0.5 examples/rango/media/javascripts/initializers/lighter.js
pupu-0.0.4.pre examples/rango/media/javascripts/initializers/lighter.js
pupu-0.0.3 examples/rango/media/javascripts/initializers/lighter.js
pupu-0.0.3.pre examples/rango/media/javascripts/initializers/lighter.js
pupu-0.0.2.pre examples/rango/media/javascripts/initializers/lighter.js
pupu-0.0.2 examples/rango/media/javascripts/initializers/lighter.js
pupu-0.1.pre examples/rango/media/javascripts/initializers/lighter.js
pupu-0.0.1 examples/blog/media/javascripts/initializers/lighter.js