Wednesday, June 1, 2011

Re: syntax highlighting perl with large multiline html strings

Hi Fred,

just a tangential note.

On Tuesday 31 May 2011 23:02:58 Fred Malone wrote:
> Hi all,
>
> I apologize if this has been asked before. I do a lot of programming in
> perl as cgi files and such. Many of the scripts I work on do a lot of html
> printing. Frequently there are multi-line html sections such as this:
> print <<HTML;

You should always specify the type of quotes of the here-doc explicitly:
<<"HTML" or <<'HTML' because people don't always get it right. For more
information see:

http://perl-begin.org/tutorials/bad-elements/#string-notation

And:

http://perl-begin.org/books/advanced/#pbp

Regards,

Shlomi Fish

--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
"Star Trek: We, the Living Dead" - http://shlom.in/st-wtld

Yesterday I asked one of my students if she knew what an encyclopedia is, and
she said: "Is it something like Wikipedia?".
-- http://twitter.com/alisonclement/status/8421314259

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment