TTMSFNCMemo – XML preview, long lines, word wrap / tokenization issue

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.

  • Language is 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:

  1. Is there any supported way in TTMSFNCMemo to enable visual word wrapping of long lines?

  2. Is the “tokenization skipped for long lines” behavior configurable or disableable?

  3. Is the recommended approach to always pre-format (pretty-print) XML before displaying it in TTMSFNCMemo?

  4. 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.

Hi,

Thank you for reaching out. We will investigate if it is feasible to add a word wrap option and expose a way to increase the tokenization if needed.

We will get back to you once we have more information.

With kind regards