Nodes/ComfyLab Pack/Input: Multiline (lab)
ComfyUI Node

Input: Multiline (lab)

A multiline text input that doubles as a mini file loader and comment stripper

By bugltd·Created 2 years ago·Updated about a year ago· 11
Input: Multiline (lab)
  • load
  • multiline
strip_commentstrue
multiline

Every workflow eventually needs a block of text that's too long for a one-line box - a multi-section prompt, a style sheet, a pile of negative terms you're testing. ComfyUI's built-in string widget technically can hold it, but it's cramped and there's no way to keep notes next to the actual content. Input: Multiline (lab) fixes the annoying parts: it's a proper text area, it can load a file straight into the box, and it can strip comment lines so you can keep your notes inside the value you're actually sending.

How it works

You get a big multiline text widget and three behaviors around it:

  • load - a button that opens a file picker and dumps the file's contents into the text box. No path typing, no backend access, it's just "give me a file."
  • strip_comments (default on) - any line starting with # is dropped when the node runs.
  • Empty lines are dropped too, which keeps the output clean.

The output is a single STRING (the cleaned-up text with remaining lines joined back with newlines) called, unsurprisingly, multiline. That distinction matters: this is not a list node. It hands you one string. If your end goal is "one line per list element," you want the pack's List: from Multiline or List: from File node instead - this one feeds prompts, not lists.

Why the comment stripping is quietly great

Because lines starting with # never make it into the output, you can annotate your own values in place. Want to remember why a prompt block is structured the way it is, right next to the text? Add a # line. Shared workflows become self-documenting without any extra Show Text node. Small touch, genuinely useful.

The inputs, quickly

  • load - button, load a text file into the widget (browser-side).
  • strip_comments - boolean, default true. Turn it off if your text genuinely needs # lines.
  • multiline - the text itself.

Output: multiline (STRING).

Installing it

Part of ComfyLab Pack - install the whole pack once and you get the Input, List, Queue, and XY Plot families together. ComfyUI Manager: search ComfyLab Pack. Or manually:

cd ComfyUI/custom_nodes
git clone https://github.com/bugltd/ComfyLab-Pack.git
cd ComfyLab-Pack
pip install -r requirements.txt

Then restart ComfyUI. No model files, no heavy installs beyond the pack's normal deps (opencv-python is the biggest). One thing to keep in mind: the file-picker load runs in your browser, so if your ComfyUI backend is on a different machine, the picker browses your machine, not the server's - for backend files use List: from File (lab) or the backend-flavored config nodes instead.

CategoryComfyLab/input

Inputs (3)

NameTypeDefaultDescription
loadBTNload content from file or you can just paste / edit the content below
strip_commentsBOOLEANtrueignore lines starting with '#'
multilineSTRING

Outputs (1)

NameTypeDescription
multilineSTRINGmultiline text, with comments optionally stripped