l0bsterssg

node.js static responsive blog post generator
Log | Files | Refs | README

shell.js (422B)


      1 /*
      2 Language: Shell Session
      3 Requires: bash.js
      4 Author: TSUYUSATO Kitsune <make.just.on@gmail.com>
      5 Category: common
      6 */
      7 
      8 function shell(hljs) {
      9   return {
     10     name: 'Shell Session',
     11     aliases: ['console'],
     12     contains: [
     13       {
     14         className: 'meta',
     15         begin: '^\\s{0,3}[/\\w\\d\\[\\]()@-]*[>%$#]',
     16         starts: {
     17           end: '$', subLanguage: 'bash'
     18         }
     19       }
     20     ]
     21   }
     22 }
     23 
     24 module.exports = shell;