Sublime Forum

Does minihtml support the pre tag?


I couldn’t find the docs.

I tried it in sublime and I would say that it doesn’t,
because it doesn’t preserve white-space.

But just to be sure, does minihtml support the <pre> tag?

1 Like


try <code> maybe?

1 Like


Thanks for replying.
Already tried it, but it doesn’t preserve white-space.

1 Like


Yeah, you kind of have to process the content yourself and format it with nbsp instead of spaces and tabs etc. That’s really the best that can be done. It would be nice if minihtml supported pre/code out of the box. That’s how it’s handled here:

1 Like


So replacing \n with <br> is currently the only way to wrap new lines in minihtml.
Thanks for the reply

1 Like