Skip to content

Consent to HTML tags folding in Javadoc comments #9

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

Merged
merged 2 commits into from
Apr 28, 2025

Conversation

zzzyxwvut
Copy link
Owner

HTML tags in Javadoc comments can additionally be folded
after applying

	let g:html_syntax_folding = 1
	set foldmethod=syntax

and giving explicit consent with

	let g:java_consent_to_html_syntax_folding = 1

Do not default to this kind of folding unless ALL start tags
and optional end tags are balanced in Javadoc comments;
otherwise, put up with creating runaway folds that break
syntax highlighting for the rest of a file.

Resolves #8.

229f79c1683fa52159e692ff8b53449e117a38b2/runtime/doc/syntax.txt
@zzzyxwvut zzzyxwvut self-assigned this Apr 22, 2025
@zzzyxwvut zzzyxwvut marked this pull request as ready for review April 27, 2025 19:30
HTML tags in Javadoc comments can additionally be folded
after applying
------------------------------------------------------------
	let g:html_syntax_folding = 1
	set foldmethod=syntax
------------------------------------------------------------

and giving explicit consent with
------------------------------------------------------------
	let g:java_consent_to_html_syntax_folding = 1
------------------------------------------------------------

Do not default to this kind of folding unless ALL start tags
and optional end tags are balanced in Javadoc comments;
otherwise, put up with creating runaway folds that break
syntax highlighting.

Resolves #8.
@zzzyxwvut zzzyxwvut merged commit 4f2c595 into master Apr 28, 2025
@zzzyxwvut zzzyxwvut deleted the comments/folding branch April 28, 2025 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

comment highlighting continues after HTML tag
1 participant