[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    imposible to hl ?
From:       Pupeno <pupeno () pupeno ! com ! ar>
Date:       2002-04-22 20:20:04
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

How can I make the rules to highlight this from PHP manual:
Heredoc

 Another way to delimit strings is by using here doc syntax ("<<<"). One 
should provide an identifier after <<<, then the string, and then the same 
identifier to close the quotation. 

The closing identifier must begin in the first column of the line. Also, the 
identifier used must follow the same naming rules as any other label in PHP: 
it must contain only alphanumeric characters and underscores, and must start 
with a non-digit character or underscore. 

Warning

 It is very important to note that the line with the closing identifier 
contains no other characters, except possibly a semicolon (;). That means 
especially that the identifier may not be indented, and there may not be any 
spaces or tabs after or before the semicolon. 

Probably the nastiest gotcha is that there may also not be a carriage return 
(\r) at the end of the line, only a form feed, AKA newline (\n). Since 
Microsoft Windows uses the sequence \r\n as a line terminator, your heredoc 
may not work if you write your script in a Windows editor. However, most 
programming editors provide a way to save your files with a UNIX line 
terminator. 

Here doc text behaves just like a double-quoted string, without the 
double-quotes. This means that you do not need to escape quotes in your here 
docs, but you can still use the escape codes listed above. Variables are 
expanded, but the same care must be taken when expressing complex variables 
inside a here doc as with strings. 

How can I highlight this ?
- -- 
Pupeno: pupeno@pupeno.com.ar
http://www.pupeno.com.ar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8xHB2WhjnmGRO4vQRAu5PAJ9PXEbMUuWqIkjerJwg8kg5DdbukwCfXbGP
/fk8g0N2PthkIEmuljn0WLc=
=kp+M
-----END PGP SIGNATURE-----

_______________________________________________
kwrite-devel mailing list
kwrite-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic