@ -20,9 +20,9 @@ sub _paste_path {
sub create {
my ($self) = @_;
my @syntax = ('auto');
my @syntax = ($self->c(text => ['plaintext', 'markdown']));
my $langs = $self->app->config->{zerobin}->{syntax};
push @syntax, $self->c('-------' => $langs)
push @syntax, $self->c(code => $langs)
if (ref($langs) eq 'ARRAY');
$self->stash({syntax => \@syntax});
@ -19,7 +19,7 @@
<%= select_field 'expire' => \@times %>
</span>
<span class="zerobin cblock">
<%= tag 'label' => (for => 'syntax') => l('Syntax') %>:
<%= tag 'label' => (for => 'syntax') => l('Format') %>:
<%= select_field 'syntax' => $syntax; %>
</div>