YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
24 stars 8 forks source link

Multi-line template strings #2715

Open meseta opened 10 months ago

meseta commented 10 months ago

Is your feature request related to a problem?

I have some code that uses GameMaker as a web server, which outputs HTML, this necessarily requires creating long multi-line strings in the code, often interspersed with variables.

Currently because $ template strings don't support linebreaks, I am having to use @ multi-line strings with catenation. The result looks like this:

image

Describe the solution you'd like

It would be good if $ template strings supported linebreaks, or @ multi-line strings supported template variables, so that I didn't have to us so many catenations

Describe alternatives you've considered

Catenations, and other syntax does work, it's just very verbose

Additional context

No response

ParodyKnaveBob commented 9 months ago

Another alternative: combinable $@" and/or @$" indicators to open a multi-line template string.

thennothinghappened commented 7 months ago

Bumping this as something that'd be really nice to have!