Skip to content

Missing support for multi-line string text blocks #371

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
processing-bot opened this issue Jan 24, 2022 · 2 comments
Closed

Missing support for multi-line string text blocks #371

processing-bot opened this issue Jan 24, 2022 · 2 comments
Labels
enhancement New feature or request preprocessor

Comments

@processing-bot
Copy link
Collaborator

Created by: scudly

Java versions 15+ support multi-line strings in the form of text blocks delineated by three double-quotes:

String foo = """
some text
some more text
""";

The linux 4b3 install includes openjdk 17.0.1 2021-10-19, but the above code still generates a syntax error in the IDE.

Text blocks would be a very convenient way to include small shaders without having to resort to a separate external editor, though, granted, they won't have any syntax highlighting or automated formatting.

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Yeah, was reading about these earlier today. There's a chance we may bounce back to JDK 11 since it seems to be more widely supported, but we'll keep this one in mind if we stick with Java 17. This is a really useful feature for plenty of work that I do as well so I can understand its importance.

@processing-bot
Copy link
Collaborator Author

Created by: github-actions[bot]

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request preprocessor
Projects
None yet
Development

No branches or pull requests

1 participant