Page 1 of 1

Code Snippet functionality ignoring indents for code bits?

PostPosted: Wed Jan 13, 2021 1:40 pm
by bunnycat
Anybody notice that the code snippet feature in 2020R3 Flare just seems to bail on indenting your code snippets properly?

I copied an XML snippet from Notepad++, where it was formatted to indent a property. Notepad++ had the indent properly.
Flare's Code Snippet dialog box showed it indented when I copied it in and selected XML language.
Flare's XML editor does not display it indented.
Built topic in PDF/TopNav does not have indented.

It worked in previous 2020 service packs, I swear it did. Am I hallucinating?
Code snippet feature was nice, now I may go back to using PrismJS for my syntax highlighting needs.


Re: Code Snippet functionality ignoring indents for code bit

PostPosted: Wed Jan 20, 2021 3:25 am
by Vibeke B
I have just discovered this feature and wanted to use it instead of the the <pre> style. I thought I was doing something wrong until I saw your post.
I'm eager to hear about a fix before I convert loads of code samples to snippets that don't work.