Skip to content

runtime(java): Consent to HTML tags folding in Javadoc comments #17216

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
wants to merge 1 commit into from

Conversation

zzzyxwvut
Copy link
Contributor

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 zzzyxwvut/java-vim#8.

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 zzzyxwvut/java-vim#8.

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
@chrisbra
Copy link
Member

thanks

@chrisbra chrisbra closed this in 910bfd5 Apr 28, 2025
zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Apr 29, 2025
…adoc comments

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: zzzyxwvut/java-vim#8.
closes: vim/vim#17216

vim/vim@910bfd5

Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
zeertzjq added a commit to neovim/neovim that referenced this pull request Apr 29, 2025
…adoc comments (#33718)

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: zzzyxwvut/java-vim#8.
closes: vim/vim#17216

vim/vim@910bfd5

Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
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
2 participants