Sublime Forum

Can ST fold XML tags?

#1

I know it can fold arbitrary sections of text, but I seem to remember it could fold tag content, could it not? You know, just as many other editors. I cannot really explain exactly what I mean - the closest explanation or description I can give of this feature is being able to fold actual XML/HTML elements, this is very useful for large XML documents. Maybe through some package?

Thanks.

1 Like

Folding, Again
#2

Sublime folds on an indent basis. So if fold doesn’t play nice, maybe you need reformat the code?

0 Likes

#3

In addition to that:

Ctrl+k, ctrl+t folds tag attributes, for indent-based folding you can either use the arrows in the gutter or ctrl+k, ctrl+ where represents a number from 0 to 9.

0 Likes

#4

I reformatted the xml tag
however i am not getting any arrow the way we use to get in case of notepad++ for xml document

0 Likes

#5

Kindly do update if you have got any update on the same
or is there any plugin

0 Likes

#6

Are you looking to add "fade_fold_buttons": false, to your Settings file?

0 Likes