jed-users mailing list

[2009 Date Index] [2009 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: special syntax highlighting


On Mon 2009-07-20 (15:20), John E. Davis wrote:

> Have you considered using a hack such as:
> 
> print <<EOD; #=pod
>  here comes data: "blubb" $variable
>     ... and some
>     more lines
>   until
> EOD
> #=cut

Nice trick,

But it has several drawbacks:

I do not want to use HERE DOCUMENT syntax because it breaks my line
indention scheme (leading spaces become part of the output!)

#=pod and #=cut is too much to type and looks ugly.

I could accept:

pq(qq(»
  here comes data: "blubb" $variable
     ... and some
     more lines
   until
«));

But when I tried in perl.sl :

define_syntax("»", "«", '%', "perl");

it has no effect, because one can define only once the multi line
comment type.


-- 
Ullrich Horlacher              Server- und Arbeitsplatzsysteme
Rechenzentrum                  E-Mail: horlacher@xxxxxxxxxxxxxxxxxxxx
Universitaet Stuttgart         Tel:    ++49-711-685-65868
Allmandring 30                 Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.rus.uni-stuttgart.de/

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2009 date index] [2009 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]