Skip to content

A Stable Diffusion webUI extension for prompt syntax-highlighting

License

Notifications You must be signed in to change notification settings

a2569875/sd-webui-prompt-highlight

Repository files navigation

Python node.js License

Stable Diffusion WebUI Prompt syntax-highlighting Plugin

buy me a coffee

Stable Diffusion WebUI Prompt Highlight Plugin

Language

Installation

Go to [Extensions] -> [Install from URL] in webui and enter the following URL:

https://github.com/a2569875/sd-webui-prompt-highlight.git

Install and restart to complete installation.

Features

    1. Syntax highlighting for prompts
    • Neural network, keyword, quality adjustment syntax, and weight adjustment symbol highlighting
    • Color prompt
    • (optional) Weight highlighting
    • Show invisible characters
    • Support for txt2img and img2img
    • Can switch highlighting modes
    1. Find and replace prompts
    • Support for regex searches
    1. If lora-prompt-tool is installed:
    • Double-clicking the neural network syntax can quickly add a model trigger word

Development

Installation

If you want to develop the project, you need to prepare Node.js first.

After installing Node.js, run the following command in this directory:

python install.py --dev

to complete the installation.

Compilation

The prompt syntax rules are defined in src/sdprompt_highlight_rules.js.

Run the following command to compile:

python build_ace.py

Acknowledgements

a2569875/sd-webui-prompt-highlight

Releases

No releases published

Packages

No packages published

Languages