Nodes/Painting Coder Utils/Multiline Text Input 📝
ComfyUI Node

Multiline Text Input 📝

A big, comfortable text box for long prompts and captions

By jammyfu·Created 2 years ago·Updated about a year ago· 16
Multiline Text Input 📝
    • text
    text

    Long prompts are where ComfyUI's default single-line text fields start lying to you - you can't see the line breaks, you can't paste a caption file, and editing a 200-word prompt in a one-line box is misery. Multiline Text Input is the fix: a proper multi-line textarea on its own node that keeps your line breaks and hands the whole thing to the output port. Paste a paragraph, hit the port, done.

    It's the big brother of the pack's Simple Text Input 📝 in Painting Coder Utils, and it's a pure source node - nothing is processed, just typed-and-passed-through.

    How it works

    The mechanism is embarrassingly simple and that's the selling point. One text input with multiline: true, one text output. Everything you type (or paste) - line breaks, indentation, the works - passes through untouched. It behaves exactly like the multiline text widgets you already know from prompt nodes, except it lives on its own node so the value can be routed to multiple destinations.

    That's more useful than it sounds:

    • A single source of truth. Wire the output to a CLIP text encoder, a filename prefix, and a metadata node, and they all read the same string. Edit the box once, everything downstream updates.
    • Feeding port-only text inputs. Several custom nodes (this pack's Text Combiner and Show Text Plus included) expose text as connection-only ports with no editable field. This node gives you somewhere to type for them.
    • Long-form content. Prompts, LoRA training captions, character descriptions - the kind of text you'd write in a real editor, now editable in a real textarea.

    The README also notes it's friendly to both Chinese and English input and supports copy-paste - it's just a textarea, so if you can paste it anywhere, you can paste it here.

    The honest comparison

    If you already use a power pack like rgthree, its text nodes cover this with more polish, and you might not need this one. But Multiline Text Input is zero-config and zero-dependency: install the pack, drag it in, type. When all you need is "a big text box that isn't welded to the node it feeds," that's exactly it.

    Install

    ComfyUI Manager → search Painting Coder Utils, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/jammyfu/ComfyUI_PaintingCoderUtils.git
    

    Restart ComfyUI. No model downloads, no API keys; the pack's dependencies (numpy, Pillow, torch, gradio) are already present in any working ComfyUI. If an inherited workflow can't find the node, the pack's v0.3.0 namespace rename is the usual cause - the bundled fixer at docs/fix/workflow_fixer.html repairs old JSON.

    Category🎨Painting👓Coder/📝Text

    Inputs (1)

    NameTypeDefaultDescription
    textSTRING

    Outputs (1)

    NameTypeDescription
    textSTRING