1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut-pastebin synced 2025-06-07 14:17:26 -04:00

Add cobol and a few others

This commit is contained in:
Ryan Voots 2018-01-09 20:06:02 -05:00
parent c9e4555244
commit cc54be8f96
2 changed files with 8 additions and 3 deletions

View file

@ -7,12 +7,15 @@ use Mojo::Base '-base';
my @langs = (
{name => "perl5.26", mode => "perl", description => "Perl 5.26"},
{name => "perl", mode => "perl", description => "Perl 5 (blead/git)"},
{name => "perl6", mode => "perl", description => "Rakudo Star / Perl 6"},
{name => "deparse", mode => "perl", description => "Deparsed Perl"},
{name => "ruby", mode => "ruby", description => "Ruby (2.1)"},
{name => "javascript", mode => "javascript", description => "Javascript/Node.js"},
{name => "tcc", mode => "c_cpp", description => "TCC 0.9.27"},
{name => "text", mode => "text", description => "Plain text"},
{name => "text", mode => "text", description => "----------"},
{name => "cobol", mode => "cobol", description => "GnuCOBOL 2.2"},
{name => "perl", mode => "perl", description => "Perl 5 (blead/git)"},
{name => "deparse", mode => "perl", description => "Deparsed Perl"},
{name => "evalall", mode => "perl", description => "Perl (EvalAll)"},
{name => "perl5.24", mode => "perl", description => "Perl 5.24"},
{name => "perl5.22", mode => "perl", description => "Perl 5.22"},

View file

@ -10,7 +10,7 @@
}
#paste {
font-family: 'mono'
font-family: 'monospace'
}
html, body, #content {
@ -232,6 +232,8 @@
var channel = $(location).attr('hash');
if (channel == "#perl6") {
$("#language").val("perl6").change();
} else if (channel == "#cobol") {
$("#language").val("cobol").change();
}
editor.session.setMode("ace/mode/perl");