INTERACT FORUM

More => Old Versions => JRiver Media Center 25 for Windows => Topic started by: glynor on September 09, 2019, 11:03:17 pm

Title: Expression Language Question - String Literals?
Post by: glynor on September 09, 2019, 11:03:17 pm
I was thinking about something and I don't know if it has been implemented and I missed it. Do we have string literals? In other words, if you want to put a bunch of text in an expression that would otherwise need to be individually escaped, do we have something like
//* freeform text *//

That lets us avoid having to escape each individual special character or whitespace in some chunk of text?

If not, that would be cool. It would make expressions more readable in many cases, especially for anything that touches a URL.
Title: Re: Expression Language Question - String Literals?
Post by: Matt on September 10, 2019, 08:20:52 am
It's a good idea!

Next build we'll try this:
NEW: String literals can be defined in expressions by using /* comment here /*.  The text will be output without any formatting.
Title: Re: Expression Language Question - String Literals?
Post by: glynor on September 10, 2019, 10:15:53 am
Nice!
Title: Re: Expression Language Question - String Literals?
Post by: Matt on September 17, 2019, 09:39:05 am
This is in the latest build.