🖍️ 列表彩色化(给每一项上色,输出 HTML / BBCode / 终端代码)Color List Items (HTML, BBCode, ANSI, LaTeX)
给列表的每一项自动上色:彩虹渐变、两色渐变、交替两色、随机颜色(可设种子)或单一颜色,输出 HTML 彩色文字、带颜色的 HTML 列表(ul / li)、论坛 BBCode、终端 ANSI 真彩色转义码、LaTeX \textcolor 或“颜色 + 文字”对照表,并实时预览效果。HTML 和 LaTeX 的特殊字符会自动转义。适合论坛帖子、网页清单、终端脚本和课堂讲义,全程在浏览器本地完成。Give every item in a list its own colour: a rainbow, a two-colour gradient, alternating colours, random colours (with a seed) or a single colour. Get the result as coloured HTML text, a coloured HTML list (ul / li), forum BBCode, ANSI true-colour escape codes for terminals, LaTeX \textcolor or a colour + text table, with a live preview. Special characters are escaped automatically for HTML and LaTeX. Handy for forum posts, web checklists, terminal scripts and handouts, all locally in your browser.
使用说明与常见问题How-to & FAQ
「列表彩色化(给每一项上色,输出 HTML / BBCode / 终端代码)」是什么?What is the Color List Items (HTML, BBCode, ANSI, LaTeX) tool?
给列表的每一项自动上色:彩虹渐变、两色渐变、交替两色、随机颜色(可设种子)或单一颜色,输出 HTML 彩色文字、带颜色的 HTML 列表(ul / li)、论坛 BBCode、终端 ANSI 真彩色转义码、LaTeX \textcolor 或“颜色 + 文字”对照表,并实时预览效果。HTML 和 LaTeX 的特殊字符会自动转义。适合论坛帖子、网页清单、终端脚本和课堂讲义,全程在浏览器本地完成。Give every item in a list its own colour: a rainbow, a two-colour gradient, alternating colours, random colours (with a seed) or a single colour. Get the result as coloured HTML text, a coloured HTML list (ul / li), forum BBCode, ANSI true-colour escape codes for terminals, LaTeX \textcolor or a colour + text table, with a live preview. Special characters are escaped automatically for HTML and LaTeX. Handy for forum posts, web checklists, terminal scripts and handouts, all locally in your browser.
如何使用「列表彩色化(给每一项上色,输出 HTML / BBCode / 终端代码)」?How do I use the Color List Items (HTML, BBCode, ANSI, LaTeX) tool?
在「列表彩色化(给每一项上色,输出 HTML / BBCode / 终端代码)」中,按需设置「配色」、「颜色 1」、「颜色 2」、「种子」、「输出格式」等选项,然后点击「复制结果」按钮即可。In the Color List Items (HTML, BBCode, ANSI, LaTeX): Set "Colours", "Colour 1", "Colour 2", "Seed", "Output", then click "Copy result".
几种配色有什么区别?How do the colour schemes differ?
彩虹渐变按色相从红经黄、绿、蓝到品红(色相 0°–300°)均匀分配给每一项(项目越多过渡越细腻);两色渐变从“颜色 1”平滑过渡到“颜色 2”;交替两色适合斑马纹式的清单;随机颜色每项随机一种色相,饱和度和亮度固定以保证在白底上清晰,相同种子总得到相同结果;单一颜色给所有项目同一种颜色。Rainbow spreads hues evenly from red through yellow, green and blue to magenta (hue 0°–300°) across the items (more items give finer steps). Gradient blends smoothly from Colour 1 to Colour 2. Alternating suits zebra-striped lists. Random picks a random hue per item with fixed saturation and lightness so the text stays readable on white, and the same seed always gives the same result. Single colour gives every item the same colour.
终端 ANSI 代码怎么用?How do I use the terminal ANSI codes?
输出里的 \033[38;2;R;G;Bm 是 24 位真彩色转义序列,\033[0m 恢复默认颜色。在 Bash 里用 printf 或 echo -e 输出即可看到彩色文字,例如 printf '\033[38;2;255;0;0m红色\033[0m\n';Windows Terminal、iTerm2、VS Code 终端和大多数现代终端都支持。\033[38;2;R;G;Bm in the output is a 24-bit true-colour escape sequence, and \033[0m resets the colour. In Bash, print it with printf or echo -e to see coloured text, for example printf '\033[38;2;255;0;0mred\033[0m\n'. Windows Terminal, iTerm2, the VS Code terminal and most modern terminals support it.
特殊字符会出问题吗?空行怎么处理?Do special characters cause problems? What about blank lines?
HTML 格式会把 < > & 和引号转义,LaTeX 格式会转义 \ { } $ & # _ % ~ ^,所以列表里的代码或公式不会破坏结果;BBCode 和 ANSI 原样输出。勾选“跳过空行”时空行被删除,否则保留为空行(HTML 中为
),空行不占用颜色序号。The HTML formats escape < > & and quotes, and LaTeX escapes \ { } $ & # _ % ~ ^, so code or formulas in your list won't break the result; BBCode and ANSI are output as-is. With Skip blank lines ticked, blank lines are dropped; otherwise they're kept as empty lines (
in HTML), and they don't use up a colour.
处理大段文本会卡吗?Can it handle long text?
「列表彩色化(给每一项上色,输出 HTML / BBCode / 终端代码)」在浏览器中直接处理,几 MB 以内的文本通常瞬间完成;文本不会离开你的设备。The Color List Items (HTML, BBCode, ANSI, LaTeX) runs in your browser; text up to a few MB is usually processed instantly and never leaves your device.
「列表彩色化(给每一项上色,输出 HTML / BBCode / 终端代码)」免费吗?需要注册吗?Is the Color List Items (HTML, BBCode, ANSI, LaTeX) free? Do I need an account?
「列表彩色化(给每一项上色,输出 HTML / BBCode / 终端代码)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Color List Items (HTML, BBCode, ANSI, LaTeX) is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.