You are here: PSPad forum > English discussion forum > highlighting strings spanning multiple lines
Posted by: dhohmann | Date: 2015-02-02 10:44 | IP: IP Logged
Hello Jan,
I worked on some PHP-files recently and to my surprise I noticed, that strings spanning multiple lines were nicely highlighted!
Is it possible to implement this behavior in user highlighter settings?
Greetings,
Dirk
Posted by: pspad | Date: 2015-02-02 11:59 | IP: IP Logged
Hello, it's hard to implement it generally. Each language can have it's own rules.
Posted by: dhohmann | Date: 2015-02-03 15:54 | IP: IP Logged
Hello Jan,
that's right, but I thought of some simple checkable option to let the user decide if highlighting a string should end at the end of the line or if highlighting should span from quote to quote.
I would expect it to work like comments (eg. {...}).
Greetings,
Dirk
Posted by: pspad | Date: 2015-02-03 17:53 | IP: IP Logged
Each language has own rules - some hasmultiline commands, some must have special char on the end of the line, e.t.c.
Look at multiline comments - how many comments is there and each comment has own rules
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR