Sha256: a52f0b0cb365f510be22fce4826baaf27ca22e1c901113160009b6a03b5c4a42

Contents?: true

Size: 1.62 KB

Versions: 9

Compression:

Stored size: 1.62 KB

Contents

### C

    :::c
    int a, b;  
    int main(int argc, char *argv[]) {  
       hello();  
       return 0;  
    }  
    void hello(void) {  
       printf("hello world\n");  
    }

### html

    :::html
    <html>
      <head>
        <title>hello world</title>
      </head>
      <body>
        <h1>hello world</h1>
      </body>
    </html>

### ruby 

    :::ruby
    def hello
      puts 'hello world'
    end

### css21

    :::css
    html {
      margin: 0;
      padding: 0;
      background-color: #0C7D85;
      line-height: 1.6;
    }
    body {
      margin: 1em auto 1em auto;
      padding: 1em 2em 2em 1em;
      width: 760px;
      border: 1px solid black;
      background-color: #E8DDCB;
    }

### sqlite

    :::sql
    drop table if exists exams;  
    create table exams (  
      id          integer       primary key autoincrement,  
      student_id  integer       not null,  -- foreign key
      result      integer       default 0 collate nocase,  
      when        datetime
    );  

### javascript

    :::javascript
    for (var i = 0, length = properties.length; i < length; i++) {
      var property = properties[i], value = source[property];
      if (ancestor && Object.isFunction(value) &&
              value.argumentNames().first() == "$super") {
        var method = value, value = Object.extend((function(m) {
              return function() { return ancestor[m].apply(this, arguments) };
            })(property).wrap(method), {
              valueOf:  function() { return method },
              toString: function() { return method.toString() }
            });
      }
      this.prototype[property] = value;
    }

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
wbzyl-codehighlighter-middleware-0.0.7 examples/views/index.rdiscount
wbzyl-codehighlighter-middleware-0.1.0 examples/views/index.rdiscount
wbzyl-codehighlighter-middleware-0.1.1 examples/views/index.rdiscount
wbzyl-rack-codehighlighter-0.1.1 examples/views/index.rdiscount
wbzyl-rack-codehighlighter-0.1.2 examples/views/index.rdiscount
wbzyl-rack-codehighlighter-0.1.3 examples/views/index.rdiscount
wbzyl-rack-codehighlighter-0.1.4 examples/views/index.rdiscount
wbzyl-rack-codehighlighter-0.1.5 examples/views/index.rdiscount
wbzyl-rack-codehighlighter-0.1.6 examples/views/index.rdiscount