Hello,
I’m working with TTMSFNCMemo (TMS FNC UI Pack) and using it to preview XML files.
Scenario:
-
XML files (~500 kB) are loaded directly into TTMSFNCMemo using:
TMSFNCMemo.Lines.LoadFromFile(FileName, TEncoding.UTF8)
(with fallback to default encoding when needed) -
Some XML files are minified, resulting in very long single-line XML.
-
Languageis set to XML for syntax highlighting.
Observed behavior:
-
When the XML contains very long lines, the editor displays the message:
“Tokenization is skipped for long lines for performance reasons.”
-
Syntax highlighting is disabled in this case.
-
Long lines are not visually wrapped, making the XML difficult to read.
-
There does not appear to be any exposed WordWrap / WrapMode option in TTMSFNCMemo.
Questions:
-
Is there any supported way in TTMSFNCMemo to enable visual word wrapping of long lines?
-
Is the “tokenization skipped for long lines” behavior configurable or disableable?
-
Is the recommended approach to always pre-format (pretty-print) XML before displaying it in TTMSFNCMemo?
-
If TTMSFNCMemo is not intended for viewing larger or minified XML files, which TMS FNC component do you recommend for this use case?
Goal:
Readable XML preview (including ~500 kB minified XML files) without modifying the original file content, if possible.
Thank you for clarification and recommended best practices.