├── .github └── FUNDING.yml ├── .gitignore ├── .vscode └── settings.json ├── LICENSE ├── README.md ├── README.zh-tw.md ├── ace ├── LICENSE ├── ace.js ├── css │ ├── ace.css │ ├── ambiance-1.png │ ├── ambiance-2.png │ ├── ambiance-3.png │ ├── chrome-1.png │ ├── chrome-2.png │ ├── cloud9_day-1.png │ ├── cloud9_day-2.png │ ├── cloud9_night-1.png │ ├── cloud9_night-2.png │ ├── cloud9_night_low_color-1.png │ ├── cloud9_night_low_color-2.png │ ├── clouds-1.png │ ├── clouds-2.png │ ├── clouds_midnight-1.png │ ├── clouds_midnight-2.png │ ├── cobalt-1.png │ ├── cobalt-2.png │ ├── crimson_editor-1.png │ ├── crimson_editor-2.png │ ├── dawn-1.png │ ├── dawn-2.png │ ├── dracula-1.png │ ├── dracula-2.png │ ├── dreamweaver-1.png │ ├── dreamweaver-2.png │ ├── eclipse-1.png │ ├── eclipse-2.png │ ├── github-1.png │ ├── github-2.png │ ├── gob-1.png │ ├── gob-2.png │ ├── gruvbox-1.png │ ├── gruvbox-2.png │ ├── gruvbox_dark_hard-1.png │ ├── gruvbox_light_hard-1.png │ ├── gruvbox_light_hard-2.png │ ├── idle_fingers-1.png │ ├── idle_fingers-2.png │ ├── iplastic-1.png │ ├── iplastic-2.png │ ├── iplastic-3.png │ ├── katzenmilch-1.png │ ├── katzenmilch-2.png │ ├── kr_theme-1.png │ ├── kr_theme-2.png │ ├── kuroir-1.png │ ├── kuroir-2.png │ ├── main-1.png │ ├── main-10.png │ ├── main-11.png │ ├── main-12.png │ ├── main-13.png │ ├── main-14.png │ ├── main-15.png │ ├── main-16.png │ ├── main-17.png │ ├── main-18.png │ ├── main-19.png │ ├── main-2.png │ ├── main-20.png │ ├── main-21.png │ ├── main-22.png │ ├── main-3.png │ ├── main-4.png │ ├── main-5.svg │ ├── main-6.svg │ ├── main-7.svg │ ├── main-8.svg │ ├── main-9.svg │ ├── merbivore-1.png │ ├── merbivore-2.png │ ├── merbivore_soft-1.png │ ├── merbivore_soft-2.png │ ├── mono_industrial-1.png │ ├── mono_industrial-2.png │ ├── monokai-1.png │ ├── monokai-2.png │ ├── one_dark-1.png │ ├── one_dark-2.png │ ├── pastel_on_dark-1.png │ ├── pastel_on_dark-2.png │ ├── solarized_dark-1.png │ ├── solarized_dark-2.png │ ├── solarized_light-1.png │ ├── solarized_light-2.png │ ├── sqlserver-1.png │ ├── sqlserver-2.png │ ├── terminal-1.png │ ├── terminal-2.png │ ├── textmate-1.png │ ├── textmate-2.png │ ├── theme │ │ ├── ambiance.css │ │ ├── chaos.css │ │ ├── chrome.css │ │ ├── cloud9_day.css │ │ ├── cloud9_night.css │ │ ├── cloud9_night_low_color.css │ │ ├── clouds.css │ │ ├── clouds_midnight.css │ │ ├── cobalt.css │ │ ├── crimson_editor.css │ │ ├── dawn.css │ │ ├── dracula.css │ │ ├── dreamweaver.css │ │ ├── eclipse.css │ │ ├── github.css │ │ ├── gob.css │ │ ├── gruvbox.css │ │ ├── gruvbox_dark_hard.css │ │ ├── gruvbox_light_hard.css │ │ ├── idle_fingers.css │ │ ├── iplastic.css │ │ ├── katzenmilch.css │ │ ├── kr_theme.css │ │ ├── kuroir.css │ │ ├── merbivore.css │ │ ├── merbivore_soft.css │ │ ├── mono_industrial.css │ │ ├── monokai.css │ │ ├── nord_dark.css │ │ ├── one_dark.css │ │ ├── pastel_on_dark.css │ │ ├── solarized_dark.css │ │ ├── solarized_light.css │ │ ├── sqlserver.css │ │ ├── terminal.css │ │ ├── textmate.css │ │ ├── tomorrow.css │ │ ├── tomorrow_night.css │ │ ├── tomorrow_night_blue.css │ │ ├── tomorrow_night_bright.css │ │ ├── tomorrow_night_eighties.css │ │ ├── twilight.css │ │ ├── vibrant_ink.css │ │ └── xcode.css │ ├── tomorrow-1.png │ ├── tomorrow-2.png │ ├── tomorrow_night-1.png │ ├── tomorrow_night-2.png │ ├── tomorrow_night_blue-1.png │ ├── tomorrow_night_blue-2.png │ ├── tomorrow_night_bright-1.png │ ├── tomorrow_night_bright-2.png │ ├── tomorrow_night_eighties-1.png │ ├── tomorrow_night_eighties-2.png │ ├── twilight-1.png │ ├── twilight-2.png │ ├── vibrant_ink-1.png │ ├── vibrant_ink-2.png │ ├── xcode-1.png │ └── xcode-2.png ├── ext-beautify.js ├── ext-code_lens.js ├── ext-elastic_tabstops_lite.js ├── ext-emmet.js ├── ext-error_marker.js ├── ext-hardwrap.js ├── ext-inline_autocomplete.js ├── ext-keybinding_menu.js ├── ext-language_tools.js ├── ext-linking.js ├── ext-modelist.js ├── ext-options.js ├── ext-prompt.js ├── ext-rtl.js ├── ext-searchbox.js ├── ext-settings_menu.js ├── ext-spellcheck.js ├── ext-split.js ├── ext-static_highlight.js ├── ext-statusbar.js ├── ext-textarea.js ├── ext-themelist.js ├── ext-whitespace.js ├── jquery-3.6.4.min.js ├── keybinding-emacs.js ├── keybinding-sublime.js ├── keybinding-vim.js ├── keybinding-vscode.js ├── mode-abap.js ├── mode-abc.js ├── mode-actionscript.js ├── mode-ada.js ├── mode-alda.js ├── mode-apache_conf.js ├── mode-apex.js ├── mode-applescript.js ├── mode-aql.js ├── mode-asciidoc.js ├── mode-asl.js ├── mode-assembly_x86.js ├── mode-autohotkey.js ├── mode-batchfile.js ├── mode-bibtex.js ├── mode-c9search.js ├── mode-c_cpp.js ├── mode-cirru.js ├── mode-clojure.js ├── mode-cobol.js ├── mode-coffee.js ├── mode-coldfusion.js ├── mode-crystal.js ├── mode-csharp.js ├── mode-csound_document.js ├── mode-csound_orchestra.js ├── mode-csound_score.js ├── mode-csp.js ├── mode-css.js ├── mode-curly.js ├── mode-d.js ├── mode-dart.js ├── mode-diff.js ├── mode-django.js ├── mode-dockerfile.js ├── mode-dot.js ├── mode-drools.js ├── mode-edifact.js ├── mode-eiffel.js ├── mode-ejs.js ├── mode-elixir.js ├── mode-elm.js ├── mode-erlang.js ├── mode-forth.js ├── mode-fortran.js ├── mode-fsharp.js ├── mode-fsl.js ├── mode-ftl.js ├── mode-gcode.js ├── mode-gherkin.js ├── mode-gitignore.js ├── mode-glsl.js ├── mode-gobstones.js ├── mode-golang.js ├── mode-graphqlschema.js ├── mode-groovy.js ├── mode-haml.js ├── mode-handlebars.js ├── mode-haskell.js ├── mode-haskell_cabal.js ├── mode-haxe.js ├── mode-hjson.js ├── mode-html.js ├── mode-html_elixir.js ├── mode-html_ruby.js ├── mode-ini.js ├── mode-inside_python.js ├── mode-inside_pythonic.js ├── mode-io.js ├── mode-ion.js ├── mode-jack.js ├── mode-jade.js ├── mode-java.js ├── mode-javascript.js ├── mode-jexl.js ├── mode-json.js ├── mode-json5.js ├── mode-jsoniq.js ├── mode-jsp.js ├── mode-jssm.js ├── mode-jsx.js ├── mode-julia.js ├── mode-kotlin.js ├── mode-latex.js ├── mode-latte.js ├── mode-less.js ├── mode-liquid.js ├── mode-lisp.js ├── mode-livescript.js ├── mode-logiql.js ├── mode-logtalk.js ├── mode-lsl.js ├── mode-lua.js ├── mode-luapage.js ├── mode-lucene.js ├── mode-makefile.js ├── mode-markdown.js ├── mode-mask.js ├── mode-matlab.js ├── mode-maze.js ├── mode-mediawiki.js ├── mode-mel.js ├── mode-mips.js ├── mode-mixal.js ├── mode-mushcode.js ├── mode-mysql.js ├── mode-nginx.js ├── mode-nim.js ├── mode-nix.js ├── mode-nsis.js ├── mode-nunjucks.js ├── mode-objectivec.js ├── mode-ocaml.js ├── mode-partiql.js ├── mode-pascal.js ├── mode-perl.js ├── mode-pgsql.js ├── mode-php.js ├── mode-php_laravel_blade.js ├── mode-pig.js ├── mode-plain_text.js ├── mode-plsql.js ├── mode-powershell.js ├── mode-praat.js ├── mode-prisma.js ├── mode-prolog.js ├── mode-properties.js ├── mode-protobuf.js ├── mode-puppet.js ├── mode-python.js ├── mode-qml.js ├── mode-r.js ├── mode-raku.js ├── mode-razor.js ├── mode-rdoc.js ├── mode-red.js ├── mode-redshift.js ├── mode-rhtml.js ├── mode-robot.js ├── mode-rst.js ├── mode-ruby.js ├── mode-rust.js ├── mode-sac.js ├── mode-sass.js ├── mode-scad.js ├── mode-scala.js ├── mode-scheme.js ├── mode-scrypt.js ├── mode-scss.js ├── mode-sdprompt.js ├── mode-sh.js ├── mode-sjs.js ├── mode-slim.js ├── mode-smarty.js ├── mode-smithy.js ├── mode-snippets.js ├── mode-soy_template.js ├── mode-space.js ├── mode-sparql.js ├── mode-sql.js ├── mode-sqlserver.js ├── mode-stylus.js ├── mode-svg.js ├── mode-swift.js ├── mode-tcl.js ├── mode-terraform.js ├── mode-tex.js ├── mode-text.js ├── mode-textile.js ├── mode-toml.js ├── mode-tsx.js ├── mode-turtle.js ├── mode-twig.js ├── mode-typescript.js ├── mode-vala.js ├── mode-vbscript.js ├── mode-velocity.js ├── mode-verilog.js ├── mode-vhdl.js ├── mode-visualforce.js ├── mode-wollok.js ├── mode-xml.js ├── mode-xquery.js ├── mode-yaml.js ├── mode-zeek.js ├── snippets │ ├── abap.js │ ├── abc.js │ ├── actionscript.js │ ├── ada.js │ ├── alda.js │ ├── apache_conf.js │ ├── apex.js │ ├── applescript.js │ ├── aql.js │ ├── asciidoc.js │ ├── asl.js │ ├── assembly_x86.js │ ├── autohotkey.js │ ├── batchfile.js │ ├── bibtex.js │ ├── c9search.js │ ├── c_cpp.js │ ├── cirru.js │ ├── clojure.js │ ├── cobol.js │ ├── coffee.js │ ├── coldfusion.js │ ├── crystal.js │ ├── csharp.js │ ├── csound_document.js │ ├── csound_orchestra.js │ ├── csound_score.js │ ├── csp.js │ ├── css.js │ ├── curly.js │ ├── d.js │ ├── dart.js │ ├── diff.js │ ├── django.js │ ├── dockerfile.js │ ├── dot.js │ ├── drools.js │ ├── edifact.js │ ├── eiffel.js │ ├── ejs.js │ ├── elixir.js │ ├── elm.js │ ├── erlang.js │ ├── forth.js │ ├── fortran.js │ ├── fsharp.js │ ├── fsl.js │ ├── ftl.js │ ├── gcode.js │ ├── gherkin.js │ ├── gitignore.js │ ├── glsl.js │ ├── gobstones.js │ ├── golang.js │ ├── graphqlschema.js │ ├── groovy.js │ ├── haml.js │ ├── handlebars.js │ ├── haskell.js │ ├── haskell_cabal.js │ ├── haxe.js │ ├── hjson.js │ ├── html.js │ ├── html_elixir.js │ ├── html_ruby.js │ ├── ini.js │ ├── inside_python.js │ ├── inside_pythonic.js │ ├── io.js │ ├── ion.js │ ├── jack.js │ ├── jade.js │ ├── java.js │ ├── javascript.js │ ├── jexl.js │ ├── json.js │ ├── json5.js │ ├── jsoniq.js │ ├── jsp.js │ ├── jssm.js │ ├── jsx.js │ ├── julia.js │ ├── kotlin.js │ ├── latex.js │ ├── latte.js │ ├── less.js │ ├── liquid.js │ ├── lisp.js │ ├── livescript.js │ ├── logiql.js │ ├── logtalk.js │ ├── lsl.js │ ├── lua.js │ ├── luapage.js │ ├── lucene.js │ ├── makefile.js │ ├── markdown.js │ ├── mask.js │ ├── matlab.js │ ├── maze.js │ ├── mediawiki.js │ ├── mel.js │ ├── mips.js │ ├── mixal.js │ ├── mushcode.js │ ├── mysql.js │ ├── nginx.js │ ├── nim.js │ ├── nix.js │ ├── nsis.js │ ├── nunjucks.js │ ├── objectivec.js │ ├── ocaml.js │ ├── partiql.js │ ├── pascal.js │ ├── perl.js │ ├── pgsql.js │ ├── php.js │ ├── php_laravel_blade.js │ ├── pig.js │ ├── plain_text.js │ ├── plsql.js │ ├── powershell.js │ ├── praat.js │ ├── prisma.js │ ├── prolog.js │ ├── properties.js │ ├── protobuf.js │ ├── puppet.js │ ├── python.js │ ├── qml.js │ ├── r.js │ ├── raku.js │ ├── razor.js │ ├── rdoc.js │ ├── red.js │ ├── redshift.js │ ├── rhtml.js │ ├── robot.js │ ├── rst.js │ ├── ruby.js │ ├── rust.js │ ├── sac.js │ ├── sass.js │ ├── scad.js │ ├── scala.js │ ├── scheme.js │ ├── scrypt.js │ ├── scss.js │ ├── sdprompt.js │ ├── sh.js │ ├── sjs.js │ ├── slim.js │ ├── smarty.js │ ├── smithy.js │ ├── snippets.js │ ├── soy_template.js │ ├── space.js │ ├── sparql.js │ ├── sql.js │ ├── sqlserver.js │ ├── stylus.js │ ├── svg.js │ ├── swift.js │ ├── tcl.js │ ├── terraform.js │ ├── tex.js │ ├── text.js │ ├── textile.js │ ├── toml.js │ ├── tsx.js │ ├── turtle.js │ ├── twig.js │ ├── typescript.js │ ├── vala.js │ ├── vbscript.js │ ├── velocity.js │ ├── verilog.js │ ├── vhdl.js │ ├── visualforce.js │ ├── wollok.js │ ├── xml.js │ ├── xquery.js │ ├── yaml.js │ └── zeek.js ├── theme-ambiance.js ├── theme-chaos.js ├── theme-chrome.js ├── theme-cloud9_day.js ├── theme-cloud9_night.js ├── theme-cloud9_night_low_color.js ├── theme-clouds.js ├── theme-clouds_midnight.js ├── theme-cobalt.js ├── theme-crimson_editor.js ├── theme-dawn.js ├── theme-dracula.js ├── theme-dreamweaver.js ├── theme-eclipse.js ├── theme-github.js ├── theme-gob.js ├── theme-gruvbox.js ├── theme-gruvbox_dark_hard.js ├── theme-gruvbox_light_hard.js ├── theme-idle_fingers.js ├── theme-iplastic.js ├── theme-katzenmilch.js ├── theme-kr_theme.js ├── theme-kuroir.js ├── theme-merbivore.js ├── theme-merbivore_soft.js ├── theme-mono_industrial.js ├── theme-monokai.js ├── theme-nord_dark.js ├── theme-one_dark.js ├── theme-pastel_on_dark.js ├── theme-solarized_dark.js ├── theme-solarized_light.js ├── theme-sqlserver.js ├── theme-terminal.js ├── theme-textmate.js ├── theme-tomorrow.js ├── theme-tomorrow_night.js ├── theme-tomorrow_night_blue.js ├── theme-tomorrow_night_bright.js ├── theme-tomorrow_night_eighties.js ├── theme-twilight.js ├── theme-vibrant_ink.js ├── theme-xcode.js ├── worker-base.js ├── worker-coffee.js ├── worker-css.js ├── worker-html.js ├── worker-javascript.js ├── worker-json.js ├── worker-lua.js ├── worker-php.js ├── worker-xml.js ├── worker-xquery.js └── worker-yaml.js ├── build_ace.py ├── install.py ├── javascript ├── alert.js ├── google_translator.js ├── module_template.js ├── prompt-highlight.js └── utils.js ├── readme ├── Artboard.svg └── fig1.png ├── requirements.txt ├── scripts ├── color.json ├── my_init.py ├── myutils.py ├── node.py.js ├── nodepyjs.py ├── prompt_highlight.py └── themelist.py ├── src ├── Makefile ├── __init__.js ├── __init__.py ├── inside_python.js ├── inside_python_highlight_rules.js ├── inside_pythonic.js ├── modify_code.cpp ├── project.json ├── project_tools.py ├── sdprompt.js └── sdprompt_highlight_rules.js └── style.css /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | #github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | #patreon: # Replace with a single Patreon username 5 | #open_collective: # Replace with a single Open Collective username 6 | #ko_fi: # Replace with a single Ko-fi username 7 | #tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | #community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | #liberapay: # Replace with a single Liberapay username 10 | #issuehunt: # Replace with a single IssueHunt username 11 | #otechie: # Replace with a single Otechie username 12 | #lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry 13 | custom: ['https://www.buymeacoffee.com/a2569875'] 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | build/ 12 | develop-eggs/ 13 | dist/ 14 | downloads/ 15 | eggs/ 16 | .eggs/ 17 | lib/ 18 | lib64/ 19 | parts/ 20 | sdist/ 21 | var/ 22 | wheels/ 23 | pip-wheel-metadata/ 24 | share/python-wheels/ 25 | *.egg-info/ 26 | .installed.cfg 27 | *.egg 28 | MANIFEST 29 | 30 | # PyInstaller 31 | # Usually these files are written by a python script from a template 32 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 33 | *.manifest 34 | *.spec 35 | 36 | # Installer logs 37 | pip-log.txt 38 | pip-delete-this-directory.txt 39 | 40 | # Unit test / coverage reports 41 | htmlcov/ 42 | .tox/ 43 | .nox/ 44 | .coverage 45 | .coverage.* 46 | .cache 47 | nosetests.xml 48 | coverage.xml 49 | *.cover 50 | *.py,cover 51 | .hypothesis/ 52 | .pytest_cache/ 53 | 54 | # Translations 55 | *.mo 56 | *.pot 57 | 58 | # Django stuff: 59 | *.log 60 | local_settings.py 61 | db.sqlite3 62 | db.sqlite3-journal 63 | 64 | # Flask stuff: 65 | instance/ 66 | .webassets-cache 67 | 68 | # Scrapy stuff: 69 | .scrapy 70 | 71 | # Sphinx documentation 72 | docs/_build/ 73 | 74 | # PyBuilder 75 | target/ 76 | 77 | # Jupyter Notebook 78 | .ipynb_checkpoints 79 | 80 | # IPython 81 | profile_default/ 82 | ipython_config.py 83 | 84 | # pyenv 85 | .python-version 86 | 87 | # pipenv 88 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. 89 | # However, in case of collaboration, if having platform-specific dependencies or dependencies 90 | # having no cross-platform support, pipenv may install dependencies that don't work, or not 91 | # install all needed dependencies. 92 | #Pipfile.lock 93 | 94 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow 95 | __pypackages__/ 96 | 97 | # Celery stuff 98 | celerybeat-schedule 99 | celerybeat.pid 100 | 101 | # SageMath parsed files 102 | *.sage.py 103 | 104 | # Environments 105 | .env 106 | .venv 107 | env/ 108 | venv/ 109 | ENV/ 110 | env.bak/ 111 | venv.bak/ 112 | 113 | # Spyder project settings 114 | .spyderproject 115 | .spyproject 116 | 117 | # Rope project settings 118 | .ropeproject 119 | 120 | # mkdocs documentation 121 | /site 122 | 123 | # mypy 124 | .mypy_cache/ 125 | .dmypy.json 126 | dmypy.json 127 | 128 | # Pyre type checker 129 | .pyre/ 130 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "python.envFile": "${workspaceFolder}/.env", 3 | "python.defaultInterpreterPath": "${workspaceFolder}/../../sd.webui/webui/venv/Scripts/" 4 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Python](https://img.shields.io/badge/Python-%E2%89%A73.10-blue)](https://www.python.org/downloads/) 2 | [![node.js](https://img.shields.io/badge/node--js-%E2%89%A718.16-green)](https://nodejs.org/) 3 | [![License](https://img.shields.io/github/license/a2569875/sd-webui-prompt-highlight)](https://github.com/a2569875/sd-webui-prompt-highlight/blob/main/LICENSE) 4 | # Stable Diffusion WebUI Prompt syntax-highlighting Plugin 5 | 6 | ![](readme/fig1.png) 7 | 8 | [![buy me a coffee](readme/Artboard.svg)](https://www.buymeacoffee.com/a2569875 "buy me a coffee") 9 | 10 | [![Stable Diffusion WebUI Prompt Highlight Plugin](https://res.cloudinary.com/marcomontalbano/image/upload/v1684166740/video_to_markdown/images/youtube--j1BOl0ThkgY-c05b58ac6eb4c4700831b2b3070cd403.jpg)](https://www.youtube.com/watch?v=j1BOl0ThkgY "Stable Diffusion WebUI Prompt Highlight Plugin") 11 | 12 | ### Language 13 | * [繁體中文](README.zh-tw.md) 14 | 15 | # Installation 16 | 17 | Go to \[Extensions\] -> \[Install from URL\] in webui and enter the following URL: 18 | ``` 19 | https://github.com/a2569875/sd-webui-prompt-highlight.git 20 | ``` 21 | Install and restart to complete installation. 22 | 23 | # Features 24 | * 1. Syntax highlighting for prompts 25 | - Neural network, keyword, quality adjustment syntax, and weight adjustment symbol highlighting 26 | - Color prompt 27 | - (optional) Weight highlighting 28 | - Show invisible characters 29 | - Support for txt2img and img2img 30 | - Can switch highlighting modes 31 | 32 | * 2. Find and replace prompts 33 | - Support for regex searches 34 | 35 | * 3. If [lora-prompt-tool](https://github.com/a2569875/lora-prompt-tool) is installed: 36 | - Double-clicking the neural network syntax can quickly add a model trigger word 37 | 38 | # Development 39 | ## Installation 40 | If you want to develop the project, you need to prepare [Node.js](https://nodejs.org/) first. 41 | 42 | After installing Node.js, run the following command in this directory: 43 | ``` 44 | python install.py --dev 45 | ``` 46 | to complete the installation. 47 | 48 | ## Compilation 49 | The prompt syntax rules are defined in [src/sdprompt_highlight_rules.js](src/sdprompt_highlight_rules.js). 50 | 51 | Run the following command to compile: 52 | ``` 53 | python build_ace.py 54 | ``` 55 | 56 | ## Acknowledgements 57 | * [Wikipedia Syntax Highlight Code Editor Extension](https://github.com/wikimedia/mediawiki-extensions-CodeEditor) 58 | * [JackEllie's Stable-Siffusion community team](https://discord.gg/TM5d89YNwA) 、 [Youtube channel](https://www.youtube.com/@JackEllie) 59 | * [Chinese Wikipedia community team](https://discord.gg/77n7vnu) 60 | 61 |

a2569875/sd-webui-prompt-highlight

62 | -------------------------------------------------------------------------------- /README.zh-tw.md: -------------------------------------------------------------------------------- 1 | [![Python](https://img.shields.io/badge/Python-%E2%89%A73.10-blue)](https://www.python.org/downloads/) 2 | [![node.js](https://img.shields.io/badge/node--js-%E2%89%A718.16-green)](https://nodejs.org/) 3 | [![License](https://img.shields.io/github/license/a2569875/sd-webui-prompt-highlight)](https://github.com/a2569875/sd-webui-prompt-highlight/blob/main/LICENSE) 4 | # 提示詞語法上色插件 5 | 6 | ![](readme/fig1.png) 7 | 8 | [![buy me a coffee](readme/Artboard.svg)](https://www.buymeacoffee.com/a2569875 "buy me a coffee") 9 | 10 | [![Stable Diffusion WebUI Prompt Highlight Plugin](https://res.cloudinary.com/marcomontalbano/image/upload/v1684166740/video_to_markdown/images/youtube--j1BOl0ThkgY-c05b58ac6eb4c4700831b2b3070cd403.jpg)](https://www.youtube.com/watch?v=j1BOl0ThkgY "Stable Diffusion WebUI Prompt Highlight Plugin") 11 | 12 | # 安裝 13 | 14 | 到webui的\[擴充功能\] -> \[從網址安裝\]輸入以下網址: 15 | ``` 16 | https://github.com/a2569875/sd-webui-prompt-highlight.git 17 | ``` 18 | 安裝並重新啟動即可 19 | 20 | # 功能 21 | * 1.提示詞語法上色 22 | - 附加神經網路、關鍵字、品質調整語法、權重調整符號上色 23 | - 顏色提示 24 | - (可選) 權重上色 25 | - 顯示不可見字元 26 | - txt2img和img2img支援 27 | - 可更換上色模式 28 | 29 | * 2.提示詞尋找與取代 30 | - 支援regex(正規表達式)搜索 31 | 32 | * 3.如果有安裝[lora-prompt-tool](https://github.com/a2569875/lora-prompt-tool): 33 | - 雙擊附加神經網路語法可快速加入模型觸發詞 34 | 35 | # 開發 36 | ## 安裝 37 | 若要開發專案首先要準備 [Node.js](https://nodejs.org/)。 38 | 39 | 安裝完Node.js之後,在這層目錄執行 40 | ``` 41 | python install.py --dev 42 | ``` 43 | 即完成安裝 44 | ## 編譯 45 | 提示詞的語法規則表定義在[src/sdprompt_highlight_rules.js](src/sdprompt_highlight_rules.js) 46 | 47 | 需要執行以下命令編譯 : 48 | ``` 49 | python build_ace.py 50 | ``` 51 | 52 | # 銘謝 53 | * [維基百科語法上色插件](https://github.com/wikimedia/mediawiki-extensions-CodeEditor) 54 | * [JackEllie的Stable-Siffusion的社群團隊](https://discord.gg/TM5d89YNwA) 、 [Youtube頻道](https://www.youtube.com/@JackEllie) 55 | * [中文維基百科的社群團隊](https://discord.gg/77n7vnu) 56 | 57 |

a2569875/sd-webui-prompt-highlight

-------------------------------------------------------------------------------- /ace/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010, Ajax.org B.V. 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | * Redistributions of source code must retain the above copyright 7 | notice, this list of conditions and the following disclaimer. 8 | * Redistributions in binary form must reproduce the above copyright 9 | notice, this list of conditions and the following disclaimer in the 10 | documentation and/or other materials provided with the distribution. 11 | * Neither the name of Ajax.org B.V. nor the 12 | names of its contributors may be used to endorse or promote products 13 | derived from this software without specific prior written permission. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 16 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY 19 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | -------------------------------------------------------------------------------- /ace/css/ambiance-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/ambiance-1.png -------------------------------------------------------------------------------- /ace/css/ambiance-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/ambiance-2.png -------------------------------------------------------------------------------- /ace/css/ambiance-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/ambiance-3.png -------------------------------------------------------------------------------- /ace/css/chrome-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/chrome-1.png -------------------------------------------------------------------------------- /ace/css/chrome-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/chrome-2.png -------------------------------------------------------------------------------- /ace/css/cloud9_day-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/cloud9_day-1.png -------------------------------------------------------------------------------- /ace/css/cloud9_day-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/cloud9_day-2.png -------------------------------------------------------------------------------- /ace/css/cloud9_night-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/cloud9_night-1.png -------------------------------------------------------------------------------- /ace/css/cloud9_night-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/cloud9_night-2.png -------------------------------------------------------------------------------- /ace/css/cloud9_night_low_color-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/cloud9_night_low_color-1.png -------------------------------------------------------------------------------- /ace/css/cloud9_night_low_color-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/cloud9_night_low_color-2.png -------------------------------------------------------------------------------- /ace/css/clouds-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/clouds-1.png -------------------------------------------------------------------------------- /ace/css/clouds-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/clouds-2.png -------------------------------------------------------------------------------- /ace/css/clouds_midnight-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/clouds_midnight-1.png -------------------------------------------------------------------------------- /ace/css/clouds_midnight-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/clouds_midnight-2.png -------------------------------------------------------------------------------- /ace/css/cobalt-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/cobalt-1.png -------------------------------------------------------------------------------- /ace/css/cobalt-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/cobalt-2.png -------------------------------------------------------------------------------- /ace/css/crimson_editor-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/crimson_editor-1.png -------------------------------------------------------------------------------- /ace/css/crimson_editor-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/crimson_editor-2.png -------------------------------------------------------------------------------- /ace/css/dawn-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/dawn-1.png -------------------------------------------------------------------------------- /ace/css/dawn-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/dawn-2.png -------------------------------------------------------------------------------- /ace/css/dracula-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/dracula-1.png -------------------------------------------------------------------------------- /ace/css/dracula-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/dracula-2.png -------------------------------------------------------------------------------- /ace/css/dreamweaver-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/dreamweaver-1.png -------------------------------------------------------------------------------- /ace/css/dreamweaver-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/dreamweaver-2.png -------------------------------------------------------------------------------- /ace/css/eclipse-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/eclipse-1.png -------------------------------------------------------------------------------- /ace/css/eclipse-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/eclipse-2.png -------------------------------------------------------------------------------- /ace/css/github-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/github-1.png -------------------------------------------------------------------------------- /ace/css/github-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/github-2.png -------------------------------------------------------------------------------- /ace/css/gob-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/gob-1.png -------------------------------------------------------------------------------- /ace/css/gob-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/gob-2.png -------------------------------------------------------------------------------- /ace/css/gruvbox-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/gruvbox-1.png -------------------------------------------------------------------------------- /ace/css/gruvbox-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/gruvbox-2.png -------------------------------------------------------------------------------- /ace/css/gruvbox_dark_hard-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/gruvbox_dark_hard-1.png -------------------------------------------------------------------------------- /ace/css/gruvbox_light_hard-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/gruvbox_light_hard-1.png -------------------------------------------------------------------------------- /ace/css/gruvbox_light_hard-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/gruvbox_light_hard-2.png -------------------------------------------------------------------------------- /ace/css/idle_fingers-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/idle_fingers-1.png -------------------------------------------------------------------------------- /ace/css/idle_fingers-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/idle_fingers-2.png -------------------------------------------------------------------------------- /ace/css/iplastic-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/iplastic-1.png -------------------------------------------------------------------------------- /ace/css/iplastic-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/iplastic-2.png -------------------------------------------------------------------------------- /ace/css/iplastic-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/iplastic-3.png -------------------------------------------------------------------------------- /ace/css/katzenmilch-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/katzenmilch-1.png -------------------------------------------------------------------------------- /ace/css/katzenmilch-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/katzenmilch-2.png -------------------------------------------------------------------------------- /ace/css/kr_theme-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/kr_theme-1.png -------------------------------------------------------------------------------- /ace/css/kr_theme-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/kr_theme-2.png -------------------------------------------------------------------------------- /ace/css/kuroir-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/kuroir-1.png -------------------------------------------------------------------------------- /ace/css/kuroir-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/kuroir-2.png -------------------------------------------------------------------------------- /ace/css/main-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/main-1.png -------------------------------------------------------------------------------- /ace/css/main-10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/main-10.png -------------------------------------------------------------------------------- /ace/css/main-11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/main-11.png -------------------------------------------------------------------------------- /ace/css/main-12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/main-12.png -------------------------------------------------------------------------------- /ace/css/main-13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/main-13.png -------------------------------------------------------------------------------- /ace/css/main-14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/main-14.png -------------------------------------------------------------------------------- /ace/css/main-15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/main-15.png -------------------------------------------------------------------------------- /ace/css/main-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/main-16.png -------------------------------------------------------------------------------- /ace/css/main-17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/main-17.png -------------------------------------------------------------------------------- /ace/css/main-18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/main-18.png -------------------------------------------------------------------------------- /ace/css/main-19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/main-19.png -------------------------------------------------------------------------------- /ace/css/main-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/main-2.png -------------------------------------------------------------------------------- /ace/css/main-20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/main-20.png -------------------------------------------------------------------------------- /ace/css/main-21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/main-21.png -------------------------------------------------------------------------------- /ace/css/main-22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/main-22.png -------------------------------------------------------------------------------- /ace/css/main-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/main-3.png -------------------------------------------------------------------------------- /ace/css/main-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/main-4.png -------------------------------------------------------------------------------- /ace/css/main-5.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /ace/css/main-6.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /ace/css/main-7.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ace/css/main-8.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /ace/css/main-9.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /ace/css/merbivore-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/merbivore-1.png -------------------------------------------------------------------------------- /ace/css/merbivore-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/merbivore-2.png -------------------------------------------------------------------------------- /ace/css/merbivore_soft-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/merbivore_soft-1.png -------------------------------------------------------------------------------- /ace/css/merbivore_soft-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/merbivore_soft-2.png -------------------------------------------------------------------------------- /ace/css/mono_industrial-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/mono_industrial-1.png -------------------------------------------------------------------------------- /ace/css/mono_industrial-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/mono_industrial-2.png -------------------------------------------------------------------------------- /ace/css/monokai-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/monokai-1.png -------------------------------------------------------------------------------- /ace/css/monokai-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/monokai-2.png -------------------------------------------------------------------------------- /ace/css/one_dark-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/one_dark-1.png -------------------------------------------------------------------------------- /ace/css/one_dark-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/one_dark-2.png -------------------------------------------------------------------------------- /ace/css/pastel_on_dark-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/pastel_on_dark-1.png -------------------------------------------------------------------------------- /ace/css/pastel_on_dark-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/pastel_on_dark-2.png -------------------------------------------------------------------------------- /ace/css/solarized_dark-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/solarized_dark-1.png -------------------------------------------------------------------------------- /ace/css/solarized_dark-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/solarized_dark-2.png -------------------------------------------------------------------------------- /ace/css/solarized_light-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/solarized_light-1.png -------------------------------------------------------------------------------- /ace/css/solarized_light-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/solarized_light-2.png -------------------------------------------------------------------------------- /ace/css/sqlserver-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/sqlserver-1.png -------------------------------------------------------------------------------- /ace/css/sqlserver-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/sqlserver-2.png -------------------------------------------------------------------------------- /ace/css/terminal-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/terminal-1.png -------------------------------------------------------------------------------- /ace/css/terminal-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/terminal-2.png -------------------------------------------------------------------------------- /ace/css/textmate-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/textmate-1.png -------------------------------------------------------------------------------- /ace/css/textmate-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/textmate-2.png -------------------------------------------------------------------------------- /ace/css/theme/clouds.css: -------------------------------------------------------------------------------- 1 | .ace-clouds .ace_gutter { 2 | background: #ebebeb; 3 | color: #333 4 | } 5 | 6 | .ace-clouds .ace_print-margin { 7 | width: 1px; 8 | background: #e8e8e8 9 | } 10 | 11 | .ace-clouds { 12 | background-color: #FFFFFF; 13 | color: #000000 14 | } 15 | 16 | .ace-clouds .ace_cursor { 17 | color: #000000 18 | } 19 | 20 | .ace-clouds .ace_marker-layer .ace_selection { 21 | background: #BDD5FC 22 | } 23 | 24 | .ace-clouds.ace_multiselect .ace_selection.ace_start { 25 | box-shadow: 0 0 3px 0px #FFFFFF; 26 | } 27 | 28 | .ace-clouds .ace_marker-layer .ace_step { 29 | background: rgb(255, 255, 0) 30 | } 31 | 32 | .ace-clouds .ace_marker-layer .ace_bracket { 33 | margin: -1px 0 0 -1px; 34 | border: 1px solid #BFBFBF 35 | } 36 | 37 | .ace-clouds .ace_marker-layer .ace_active-line { 38 | background: #FFFBD1 39 | } 40 | 41 | .ace-clouds .ace_gutter-active-line { 42 | background-color : #dcdcdc 43 | } 44 | 45 | .ace-clouds .ace_marker-layer .ace_selected-word { 46 | border: 1px solid #BDD5FC 47 | } 48 | 49 | .ace-clouds .ace_invisible { 50 | color: #BFBFBF 51 | } 52 | 53 | .ace-clouds .ace_keyword, 54 | .ace-clouds .ace_meta, 55 | .ace-clouds .ace_support.ace_constant.ace_property-value { 56 | color: #AF956F 57 | } 58 | 59 | .ace-clouds .ace_keyword.ace_operator { 60 | color: #484848 61 | } 62 | 63 | .ace-clouds .ace_keyword.ace_other.ace_unit { 64 | color: #96DC5F 65 | } 66 | 67 | .ace-clouds .ace_constant.ace_language { 68 | color: #39946A 69 | } 70 | 71 | .ace-clouds .ace_constant.ace_numeric { 72 | color: #46A609 73 | } 74 | 75 | .ace-clouds .ace_constant.ace_character.ace_entity { 76 | color: #BF78CC 77 | } 78 | 79 | .ace-clouds .ace_invalid { 80 | background-color: #FF002A 81 | } 82 | 83 | .ace-clouds .ace_fold { 84 | background-color: #AF956F; 85 | border-color: #000000 86 | } 87 | 88 | .ace-clouds .ace_storage, 89 | .ace-clouds .ace_support.ace_class, 90 | .ace-clouds .ace_support.ace_function, 91 | .ace-clouds .ace_support.ace_other, 92 | .ace-clouds .ace_support.ace_type { 93 | color: #C52727 94 | } 95 | 96 | .ace-clouds .ace_string { 97 | color: #5D90CD 98 | } 99 | 100 | .ace-clouds .ace_comment { 101 | color: #BCC8BA 102 | } 103 | 104 | .ace-clouds .ace_entity.ace_name.ace_tag, 105 | .ace-clouds .ace_entity.ace_other.ace_attribute-name { 106 | color: #606060 107 | } 108 | 109 | .ace-clouds .ace_indent-guide { 110 | background: url("../clouds-1.png") right repeat-y 111 | } 112 | 113 | .ace-clouds .ace_indent-guide-active { 114 | background: url("../clouds-2.png") right repeat-y; 115 | } 116 | -------------------------------------------------------------------------------- /ace/css/theme/eclipse.css: -------------------------------------------------------------------------------- 1 | .ace-eclipse .ace_gutter { 2 | background: #ebebeb; 3 | border-right: 1px solid rgb(159, 159, 159); 4 | color: rgb(136, 136, 136); 5 | } 6 | 7 | .ace-eclipse .ace_print-margin { 8 | width: 1px; 9 | background: #ebebeb; 10 | } 11 | 12 | .ace-eclipse { 13 | background-color: #FFFFFF; 14 | color: black; 15 | } 16 | 17 | .ace-eclipse .ace_fold { 18 | background-color: rgb(60, 76, 114); 19 | } 20 | 21 | .ace-eclipse .ace_cursor { 22 | color: black; 23 | } 24 | 25 | .ace-eclipse .ace_storage, 26 | .ace-eclipse .ace_keyword, 27 | .ace-eclipse .ace_variable { 28 | color: rgb(127, 0, 85); 29 | } 30 | 31 | .ace-eclipse .ace_constant.ace_buildin { 32 | color: rgb(88, 72, 246); 33 | } 34 | 35 | .ace-eclipse .ace_constant.ace_library { 36 | color: rgb(6, 150, 14); 37 | } 38 | 39 | .ace-eclipse .ace_function { 40 | color: rgb(60, 76, 114); 41 | } 42 | 43 | .ace-eclipse .ace_string { 44 | color: rgb(42, 0, 255); 45 | } 46 | 47 | .ace-eclipse .ace_comment { 48 | color: rgb(113, 150, 130); 49 | } 50 | 51 | .ace-eclipse .ace_comment.ace_doc { 52 | color: rgb(63, 95, 191); 53 | } 54 | 55 | .ace-eclipse .ace_comment.ace_doc.ace_tag { 56 | color: rgb(127, 159, 191); 57 | } 58 | 59 | .ace-eclipse .ace_constant.ace_numeric { 60 | color: darkblue; 61 | } 62 | 63 | .ace-eclipse .ace_tag { 64 | color: rgb(25, 118, 116); 65 | } 66 | 67 | .ace-eclipse .ace_type { 68 | color: rgb(127, 0, 127); 69 | } 70 | 71 | .ace-eclipse .ace_xml-pe { 72 | color: rgb(104, 104, 91); 73 | } 74 | 75 | .ace-eclipse .ace_marker-layer .ace_selection { 76 | background: rgb(181, 213, 255); 77 | } 78 | 79 | .ace-eclipse .ace_marker-layer .ace_bracket { 80 | margin: -1px 0 0 -1px; 81 | border: 1px solid rgb(192, 192, 192); 82 | } 83 | 84 | .ace-eclipse .ace_meta.ace_tag { 85 | color:rgb(25, 118, 116); 86 | } 87 | 88 | .ace-eclipse .ace_invisible { 89 | color: #ddd; 90 | } 91 | 92 | .ace-eclipse .ace_entity.ace_other.ace_attribute-name { 93 | color:rgb(127, 0, 127); 94 | } 95 | .ace-eclipse .ace_marker-layer .ace_step { 96 | background: rgb(255, 255, 0); 97 | } 98 | 99 | .ace-eclipse .ace_active-line { 100 | background: rgb(232, 242, 254); 101 | } 102 | 103 | .ace-eclipse .ace_gutter-active-line { 104 | background-color : #DADADA; 105 | } 106 | 107 | .ace-eclipse .ace_marker-layer .ace_selected-word { 108 | border: 1px solid rgb(181, 213, 255); 109 | } 110 | 111 | .ace-eclipse .ace_indent-guide { 112 | background: url("../eclipse-1.png") right repeat-y; 113 | } 114 | 115 | .ace-eclipse .ace_indent-guide-active { 116 | background: url("../eclipse-2.png") right repeat-y; 117 | } 118 | -------------------------------------------------------------------------------- /ace/css/theme/gruvbox.css: -------------------------------------------------------------------------------- 1 | .ace-gruvbox .ace_gutter-active-line { 2 | background-color: #3C3836; 3 | } 4 | 5 | .ace-gruvbox { 6 | color: #EBDAB4; 7 | background-color: #1D2021; 8 | } 9 | 10 | .ace-gruvbox .ace_invisible { 11 | color: #504945; 12 | } 13 | 14 | .ace-gruvbox .ace_marker-layer .ace_selection { 15 | background: rgba(179, 101, 57, 0.75) 16 | } 17 | 18 | .ace-gruvbox.ace_multiselect .ace_selection.ace_start { 19 | box-shadow: 0 0 3px 0px #002240; 20 | } 21 | 22 | .ace-gruvbox .ace_keyword { 23 | color: #8ec07c; 24 | } 25 | 26 | .ace-gruvbox .ace_comment { 27 | font-style: italic; 28 | color: #928375; 29 | } 30 | 31 | .ace-gruvbox .ace-statement { 32 | color: red; 33 | } 34 | 35 | .ace-gruvbox .ace_variable { 36 | color: #84A598; 37 | } 38 | 39 | .ace-gruvbox .ace_variable.ace_language { 40 | color: #D2879B; 41 | } 42 | 43 | .ace-gruvbox .ace_constant { 44 | color: #C2859A; 45 | } 46 | 47 | .ace-gruvbox .ace_constant.ace_language { 48 | color: #C2859A; 49 | } 50 | 51 | .ace-gruvbox .ace_constant.ace_numeric { 52 | color: #C2859A; 53 | } 54 | 55 | .ace-gruvbox .ace_string { 56 | color: #B8BA37; 57 | } 58 | 59 | .ace-gruvbox .ace_support { 60 | color: #F9BC41; 61 | } 62 | 63 | .ace-gruvbox .ace_support.ace_function { 64 | color: #F84B3C; 65 | } 66 | 67 | .ace-gruvbox .ace_storage { 68 | color: #8FBF7F; 69 | } 70 | 71 | .ace-gruvbox .ace_keyword.ace_operator { 72 | color: #EBDAB4; 73 | } 74 | 75 | .ace-gruvbox .ace_punctuation.ace_operator { 76 | color: yellow; 77 | } 78 | 79 | .ace-gruvbox .ace_marker-layer .ace_active-line { 80 | background: #3C3836; 81 | } 82 | 83 | .ace-gruvbox .ace_marker-layer .ace_selected-word { 84 | border-radius: 4px; 85 | border: 8px solid #3f475d; 86 | } 87 | 88 | .ace-gruvbox .ace_print-margin { 89 | width: 5px; 90 | background: #3C3836; 91 | } 92 | 93 | .ace-gruvbox .ace_indent-guide { 94 | background: url("../gruvbox-1.png") right repeat-y; 95 | } 96 | 97 | .ace-gruvbox .ace_indent-guide-active { 98 | background: url("../gruvbox-2.png") right repeat-y; 99 | } 100 | -------------------------------------------------------------------------------- /ace/css/theme/kuroir.css: -------------------------------------------------------------------------------- 1 | /* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: 467560D0-6ACE-4409-82FD-4791420837AC) */ 2 | 3 | .ace-kuroir .ace_gutter { 4 | background: #e8e8e8; 5 | color: #333; 6 | } 7 | 8 | .ace-kuroir .ace_print-margin { 9 | width: 1px; 10 | background: #e8e8e8; 11 | } 12 | 13 | .ace-kuroir { 14 | background-color: #E8E9E8; 15 | color: #363636; 16 | } 17 | 18 | .ace-kuroir .ace_cursor { 19 | color: #202020; 20 | } 21 | 22 | .ace-kuroir .ace_marker-layer .ace_selection { 23 | background: rgba(245, 170, 0, 0.57); 24 | } 25 | 26 | .ace-kuroir.ace_multiselect .ace_selection.ace_start { 27 | box-shadow: 0 0 3px 0px #E8E9E8; 28 | } 29 | 30 | .ace-kuroir .ace_marker-layer .ace_step { 31 | background: rgb(198, 219, 174); 32 | } 33 | 34 | .ace-kuroir .ace_marker-layer .ace_bracket { 35 | margin: -1px 0 0 -1px; 36 | border: 1px solid rgba(0, 0, 0, 0.29); 37 | } 38 | 39 | .ace-kuroir .ace_marker-layer .ace_active-line { 40 | background: rgba(203, 220, 47, 0.22); 41 | } 42 | 43 | .ace-kuroir .ace_gutter-active-line { 44 | background-color: rgba(203, 220, 47, 0.22); 45 | } 46 | 47 | .ace-kuroir .ace_marker-layer .ace_selected-word { 48 | border: 1px solid rgba(245, 170, 0, 0.57); 49 | } 50 | 51 | .ace-kuroir .ace_invisible { 52 | color: #BFBFBF 53 | } 54 | 55 | .ace-kuroir .ace_fold { 56 | border-color: #363636; 57 | } 58 | 59 | 60 | 61 | 62 | 63 | .ace-kuroir .ace_constant{color:#CD6839;}.ace-kuroir .ace_constant.ace_numeric{color:#9A5925;}.ace-kuroir .ace_support{color:#104E8B;}.ace-kuroir .ace_support.ace_function{color:#005273;}.ace-kuroir .ace_support.ace_constant{color:#CF6A4C;}.ace-kuroir .ace_storage{color:#A52A2A;}.ace-kuroir .ace_invalid.ace_illegal{color:#FD1224; 64 | background-color:rgba(255, 6, 0, 0.15);}.ace-kuroir .ace_invalid.ace_deprecated{text-decoration:underline; 65 | font-style:italic; 66 | color:#FD1732; 67 | background-color:#E8E9E8;}.ace-kuroir .ace_string{color:#639300;}.ace-kuroir .ace_string.ace_regexp{color:#417E00; 68 | background-color:#C9D4BE;}.ace-kuroir .ace_comment{color:rgba(148, 148, 148, 0.91); 69 | background-color:rgba(220, 220, 220, 0.56);}.ace-kuroir .ace_variable{color:#009ACD;}.ace-kuroir .ace_meta.ace_tag{color:#005273;}.ace-kuroir .ace_markup.ace_heading{color:#B8012D; 70 | background-color:rgba(191, 97, 51, 0.051);}.ace-kuroir .ace_markup.ace_list{color:#8F5B26;} 71 | 72 | .ace-kuroir .ace_indent-guide { 73 | background: url("../kuroir-1.png") right repeat-y; 74 | } 75 | 76 | .ace-kuroir .ace_indent-guide-active { 77 | background: url("../kuroir-2.png") right repeat-y; 78 | } 79 | -------------------------------------------------------------------------------- /ace/css/theme/nord_dark.css: -------------------------------------------------------------------------------- 1 | .ace-nord-dark .ace_gutter { 2 | color: #616e88; 3 | } 4 | 5 | .ace-nord-dark .ace_print-margin { 6 | width: 1px; 7 | background: #4c566a; 8 | } 9 | 10 | .ace-nord-dark { 11 | background-color: #2e3440; 12 | color: #d8dee9; 13 | } 14 | 15 | .ace-nord-dark .ace_entity.ace_other.ace_attribute-name, 16 | .ace-nord-dark .ace_storage { 17 | color: #d8dee9; 18 | } 19 | 20 | .ace-nord-dark .ace_cursor { 21 | color: #d8dee9; 22 | } 23 | 24 | .ace-nord-dark .ace_string.ace_regexp { 25 | color: #bf616a; 26 | } 27 | 28 | .ace-nord-dark .ace_marker-layer .ace_active-line { 29 | background: #434c5ecc; 30 | } 31 | .ace-nord-dark .ace_marker-layer .ace_selection { 32 | background: #434c5ecc; 33 | } 34 | 35 | .ace-nord-dark.ace_multiselect .ace_selection.ace_start { 36 | box-shadow: 0 0 3px 0px #2e3440; 37 | } 38 | 39 | .ace-nord-dark .ace_marker-layer .ace_step { 40 | background: #ebcb8b; 41 | } 42 | 43 | .ace-nord-dark .ace_marker-layer .ace_bracket { 44 | margin: -1px 0 0 -1px; 45 | border: 1px solid #88c0d066; 46 | } 47 | 48 | .ace-nord-dark .ace_gutter-active-line { 49 | background-color: #434c5ecc; 50 | } 51 | 52 | .ace-nord-dark .ace_marker-layer .ace_selected-word { 53 | border: 1px solid #88c0d066; 54 | } 55 | 56 | .ace-nord-dark .ace_invisible { 57 | color: #4c566a; 58 | } 59 | 60 | .ace-nord-dark .ace_keyword, 61 | .ace-nord-dark .ace_meta, 62 | .ace-nord-dark .ace_support.ace_class, 63 | .ace-nord-dark .ace_support.ace_type { 64 | color: #81a1c1; 65 | } 66 | 67 | .ace-nord-dark .ace_constant.ace_character, 68 | .ace-nord-dark .ace_constant.ace_other { 69 | color: #d8dee9; 70 | } 71 | 72 | .ace-nord-dark .ace_constant.ace_language { 73 | color: #5e81ac; 74 | } 75 | 76 | .ace-nord-dark .ace_constant.ace_escape { 77 | color: #ebcB8b; 78 | } 79 | 80 | .ace-nord-dark .ace_constant.ace_numeric { 81 | color: #b48ead; 82 | } 83 | 84 | .ace-nord-dark .ace_fold { 85 | background-color: #4c566a; 86 | border-color: #d8dee9; 87 | } 88 | 89 | .ace-nord-dark .ace_entity.ace_name.ace_function, 90 | .ace-nord-dark .ace_entity.ace_name.ace_tag, 91 | .ace-nord-dark .ace_support.ace_function, 92 | .ace-nord-dark .ace_variable, 93 | .ace-nord-dark .ace_variable.ace_language { 94 | color: #8fbcbb; 95 | } 96 | 97 | .ace-nord-dark .ace_string { 98 | color: #a3be8c; 99 | } 100 | 101 | .ace-nord-dark .ace_comment { 102 | color: #616e88; 103 | } 104 | 105 | .ace-nord-dark .ace_indent-guide { 106 | box-shadow: inset -1px 0 0 0 #434c5eb3; 107 | } 108 | 109 | .ace-nord-dark .ace_indent-guide-active { 110 | box-shadow: inset -1px 0 0 0 #8395b8b3; 111 | } 112 | -------------------------------------------------------------------------------- /ace/css/theme/vibrant_ink.css: -------------------------------------------------------------------------------- 1 | .ace-vibrant-ink .ace_gutter { 2 | background: #1a1a1a; 3 | color: #BEBEBE 4 | } 5 | 6 | .ace-vibrant-ink .ace_print-margin { 7 | width: 1px; 8 | background: #1a1a1a 9 | } 10 | 11 | .ace-vibrant-ink { 12 | background-color: #0F0F0F; 13 | color: #FFFFFF 14 | } 15 | 16 | .ace-vibrant-ink .ace_cursor { 17 | color: #FFFFFF 18 | } 19 | 20 | .ace-vibrant-ink .ace_marker-layer .ace_selection { 21 | background: #6699CC 22 | } 23 | 24 | .ace-vibrant-ink.ace_multiselect .ace_selection.ace_start { 25 | box-shadow: 0 0 3px 0px #0F0F0F; 26 | } 27 | 28 | .ace-vibrant-ink .ace_marker-layer .ace_step { 29 | background: rgb(102, 82, 0) 30 | } 31 | 32 | .ace-vibrant-ink .ace_marker-layer .ace_bracket { 33 | margin: -1px 0 0 -1px; 34 | border: 1px solid #404040 35 | } 36 | 37 | .ace-vibrant-ink .ace_marker-layer .ace_active-line { 38 | background: #333333 39 | } 40 | 41 | .ace-vibrant-ink .ace_gutter-active-line { 42 | background-color: #333333 43 | } 44 | 45 | .ace-vibrant-ink .ace_marker-layer .ace_selected-word { 46 | border: 1px solid #6699CC 47 | } 48 | 49 | .ace-vibrant-ink .ace_invisible { 50 | color: #404040 51 | } 52 | 53 | .ace-vibrant-ink .ace_keyword, 54 | .ace-vibrant-ink .ace_meta { 55 | color: #FF6600 56 | } 57 | 58 | .ace-vibrant-ink .ace_constant, 59 | .ace-vibrant-ink .ace_constant.ace_character, 60 | .ace-vibrant-ink .ace_constant.ace_character.ace_escape, 61 | .ace-vibrant-ink .ace_constant.ace_other { 62 | color: #339999 63 | } 64 | 65 | .ace-vibrant-ink .ace_constant.ace_numeric { 66 | color: #99CC99 67 | } 68 | 69 | .ace-vibrant-ink .ace_invalid, 70 | .ace-vibrant-ink .ace_invalid.ace_deprecated { 71 | color: #CCFF33; 72 | background-color: #000000 73 | } 74 | 75 | .ace-vibrant-ink .ace_fold { 76 | background-color: #FFCC00; 77 | border-color: #FFFFFF 78 | } 79 | 80 | .ace-vibrant-ink .ace_entity.ace_name.ace_function, 81 | .ace-vibrant-ink .ace_support.ace_function, 82 | .ace-vibrant-ink .ace_variable { 83 | color: #FFCC00 84 | } 85 | 86 | .ace-vibrant-ink .ace_variable.ace_parameter { 87 | font-style: italic 88 | } 89 | 90 | .ace-vibrant-ink .ace_string { 91 | color: #66FF00 92 | } 93 | 94 | .ace-vibrant-ink .ace_string.ace_regexp { 95 | color: #44B4CC 96 | } 97 | 98 | .ace-vibrant-ink .ace_comment { 99 | color: #9933CC 100 | } 101 | 102 | .ace-vibrant-ink .ace_entity.ace_other.ace_attribute-name { 103 | font-style: italic; 104 | color: #99CC99 105 | } 106 | 107 | .ace-vibrant-ink .ace_indent-guide { 108 | background: url("../vibrant_ink-1.png") right repeat-y 109 | } 110 | 111 | .ace-vibrant-ink .ace_indent-guide-active { 112 | background: url("../vibrant_ink-2.png") right repeat-y; 113 | } 114 | -------------------------------------------------------------------------------- /ace/css/theme/xcode.css: -------------------------------------------------------------------------------- 1 | /* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: EE3AD170-2B7F-4DE1-B724-C75F13FE0085) */ 2 | 3 | .ace-xcode .ace_gutter { 4 | background: #e8e8e8; 5 | color: #333 6 | } 7 | 8 | .ace-xcode .ace_print-margin { 9 | width: 1px; 10 | background: #e8e8e8 11 | } 12 | 13 | .ace-xcode { 14 | background-color: #FFFFFF; 15 | color: #000000 16 | } 17 | 18 | .ace-xcode .ace_cursor { 19 | color: #000000 20 | } 21 | 22 | .ace-xcode .ace_marker-layer .ace_selection { 23 | background: #B5D5FF 24 | } 25 | 26 | .ace-xcode.ace_multiselect .ace_selection.ace_start { 27 | box-shadow: 0 0 3px 0px #FFFFFF; 28 | } 29 | 30 | .ace-xcode .ace_marker-layer .ace_step { 31 | background: rgb(198, 219, 174) 32 | } 33 | 34 | .ace-xcode .ace_marker-layer .ace_bracket { 35 | margin: -1px 0 0 -1px; 36 | border: 1px solid #BFBFBF 37 | } 38 | 39 | .ace-xcode .ace_marker-layer .ace_active-line { 40 | background: rgba(0, 0, 0, 0.071) 41 | } 42 | 43 | .ace-xcode .ace_gutter-active-line { 44 | background-color: rgba(0, 0, 0, 0.071) 45 | } 46 | 47 | .ace-xcode .ace_marker-layer .ace_selected-word { 48 | border: 1px solid #B5D5FF 49 | } 50 | 51 | .ace-xcode .ace_constant.ace_language, 52 | .ace-xcode .ace_keyword, 53 | .ace-xcode .ace_meta, 54 | .ace-xcode .ace_variable.ace_language { 55 | color: #C800A4 56 | } 57 | 58 | .ace-xcode .ace_invisible { 59 | color: #BFBFBF 60 | } 61 | 62 | .ace-xcode .ace_constant.ace_character, 63 | .ace-xcode .ace_constant.ace_other { 64 | color: #275A5E 65 | } 66 | 67 | .ace-xcode .ace_constant.ace_numeric { 68 | color: #3A00DC 69 | } 70 | 71 | .ace-xcode .ace_entity.ace_other.ace_attribute-name, 72 | .ace-xcode .ace_support.ace_constant, 73 | .ace-xcode .ace_support.ace_function { 74 | color: #450084 75 | } 76 | 77 | .ace-xcode .ace_fold { 78 | background-color: #C800A4; 79 | border-color: #000000 80 | } 81 | 82 | .ace-xcode .ace_entity.ace_name.ace_tag, 83 | .ace-xcode .ace_support.ace_class, 84 | .ace-xcode .ace_support.ace_type { 85 | color: #790EAD 86 | } 87 | 88 | .ace-xcode .ace_storage { 89 | color: #C900A4 90 | } 91 | 92 | .ace-xcode .ace_string { 93 | color: #DF0002 94 | } 95 | 96 | .ace-xcode .ace_comment { 97 | color: #008E00 98 | } 99 | 100 | .ace-xcode .ace_indent-guide { 101 | background: url("../xcode-1.png") right repeat-y 102 | } 103 | 104 | .ace-xcode .ace_indent-guide-active { 105 | background: url("../xcode-2.png") right repeat-y; 106 | } 107 | -------------------------------------------------------------------------------- /ace/css/tomorrow-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/tomorrow-1.png -------------------------------------------------------------------------------- /ace/css/tomorrow-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/tomorrow-2.png -------------------------------------------------------------------------------- /ace/css/tomorrow_night-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/tomorrow_night-1.png -------------------------------------------------------------------------------- /ace/css/tomorrow_night-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/tomorrow_night-2.png -------------------------------------------------------------------------------- /ace/css/tomorrow_night_blue-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/tomorrow_night_blue-1.png -------------------------------------------------------------------------------- /ace/css/tomorrow_night_blue-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/tomorrow_night_blue-2.png -------------------------------------------------------------------------------- /ace/css/tomorrow_night_bright-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/tomorrow_night_bright-1.png -------------------------------------------------------------------------------- /ace/css/tomorrow_night_bright-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/tomorrow_night_bright-2.png -------------------------------------------------------------------------------- /ace/css/tomorrow_night_eighties-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/tomorrow_night_eighties-1.png -------------------------------------------------------------------------------- /ace/css/tomorrow_night_eighties-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/tomorrow_night_eighties-2.png -------------------------------------------------------------------------------- /ace/css/twilight-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/twilight-1.png -------------------------------------------------------------------------------- /ace/css/twilight-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/twilight-2.png -------------------------------------------------------------------------------- /ace/css/vibrant_ink-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/vibrant_ink-1.png -------------------------------------------------------------------------------- /ace/css/vibrant_ink-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/vibrant_ink-2.png -------------------------------------------------------------------------------- /ace/css/xcode-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/xcode-1.png -------------------------------------------------------------------------------- /ace/css/xcode-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/ace/css/xcode-2.png -------------------------------------------------------------------------------- /ace/ext-error_marker.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/ext/error_marker"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/ext-linking.js: -------------------------------------------------------------------------------- 1 | define("ace/ext/linking",["require","exports","module","ace/editor","ace/config"], function(require, exports, module){var Editor = require("../editor").Editor; 2 | require("../config").defineOptions(Editor.prototype, "editor", { 3 | enableLinking: { 4 | set: function (val) { 5 | if (val) { 6 | this.on("click", onClick); 7 | this.on("mousemove", onMouseMove); 8 | } 9 | else { 10 | this.off("click", onClick); 11 | this.off("mousemove", onMouseMove); 12 | } 13 | }, 14 | value: false 15 | } 16 | }); 17 | exports.previousLinkingHover = false; 18 | function onMouseMove(e) { 19 | var editor = e.editor; 20 | var ctrl = e.getAccelKey(); 21 | if (ctrl) { 22 | var editor = e.editor; 23 | var docPos = e.getDocumentPosition(); 24 | var session = editor.session; 25 | var token = session.getTokenAt(docPos.row, docPos.column); 26 | if (exports.previousLinkingHover && exports.previousLinkingHover != token) { 27 | editor._emit("linkHoverOut"); 28 | } 29 | editor._emit("linkHover", { position: docPos, token: token }); 30 | exports.previousLinkingHover = token; 31 | } 32 | else if (exports.previousLinkingHover) { 33 | editor._emit("linkHoverOut"); 34 | exports.previousLinkingHover = false; 35 | } 36 | } 37 | function onClick(e) { 38 | var ctrl = e.getAccelKey(); 39 | var button = e.getButton(); 40 | if (button == 0 && ctrl) { 41 | var editor = e.editor; 42 | var docPos = e.getDocumentPosition(); 43 | var session = editor.session; 44 | var token = session.getTokenAt(docPos.row, docPos.column); 45 | editor._emit("linkClick", { position: docPos, token: token }); 46 | } 47 | } 48 | 49 | }); 50 | (function() { 51 | window.require(["ace/ext/linking"], function(m) { 52 | if (typeof module == "object" && typeof exports == "object" && module) { 53 | module.exports = m; 54 | } 55 | }); 56 | })(); 57 | -------------------------------------------------------------------------------- /ace/ext-spellcheck.js: -------------------------------------------------------------------------------- 1 | define("ace/ext/spellcheck",["require","exports","module","ace/lib/event","ace/editor","ace/config"], function(require, exports, module){"use strict"; 2 | var event = require("../lib/event"); 3 | exports.contextMenuHandler = function (e) { 4 | var host = e.target; 5 | var text = host.textInput.getElement(); 6 | if (!host.selection.isEmpty()) 7 | return; 8 | var c = host.getCursorPosition(); 9 | var r = host.session.getWordRange(c.row, c.column); 10 | var w = host.session.getTextRange(r); 11 | host.session.tokenRe.lastIndex = 0; 12 | if (!host.session.tokenRe.test(w)) 13 | return; 14 | var PLACEHOLDER = "\x01\x01"; 15 | var value = w + " " + PLACEHOLDER; 16 | text.value = value; 17 | text.setSelectionRange(w.length, w.length + 1); 18 | text.setSelectionRange(0, 0); 19 | text.setSelectionRange(0, w.length); 20 | var afterKeydown = false; 21 | event.addListener(text, "keydown", function onKeydown() { 22 | event.removeListener(text, "keydown", onKeydown); 23 | afterKeydown = true; 24 | }); 25 | host.textInput.setInputHandler(function (newVal) { 26 | if (newVal == value) 27 | return ''; 28 | if (newVal.lastIndexOf(value, 0) === 0) 29 | return newVal.slice(value.length); 30 | if (newVal.substr(text.selectionEnd) == value) 31 | return newVal.slice(0, -value.length); 32 | if (newVal.slice(-2) == PLACEHOLDER) { 33 | var val = newVal.slice(0, -2); 34 | if (val.slice(-1) == " ") { 35 | if (afterKeydown) 36 | return val.substring(0, text.selectionEnd); 37 | val = val.slice(0, -1); 38 | host.session.replace(r, val); 39 | return ""; 40 | } 41 | } 42 | return newVal; 43 | }); 44 | }; 45 | var Editor = require("../editor").Editor; 46 | require("../config").defineOptions(Editor.prototype, "editor", { 47 | spellcheck: { 48 | set: function (val) { 49 | var text = this.textInput.getElement(); 50 | text.spellcheck = !!val; 51 | if (!val) 52 | this.removeListener("nativecontextmenu", exports.contextMenuHandler); 53 | else 54 | this.on("nativecontextmenu", exports.contextMenuHandler); 55 | }, 56 | value: true 57 | } 58 | }); 59 | 60 | }); 61 | (function() { 62 | window.require(["ace/ext/spellcheck"], function(m) { 63 | if (typeof module == "object" && typeof exports == "object" && module) { 64 | module.exports = m; 65 | } 66 | }); 67 | })(); 68 | -------------------------------------------------------------------------------- /ace/ext-statusbar.js: -------------------------------------------------------------------------------- 1 | define("ace/ext/statusbar",["require","exports","module","ace/lib/dom","ace/lib/lang"], function(require, exports, module){"use strict"; 2 | var dom = require("../lib/dom"); 3 | var lang = require("../lib/lang"); 4 | var StatusBar = /** @class */ (function () { 5 | function StatusBar(editor, parentNode) { 6 | this.element = dom.createElement("div"); 7 | this.element.className = "ace_status-indicator"; 8 | this.element.style.cssText = "display: inline-block;"; 9 | parentNode.appendChild(this.element); 10 | var statusUpdate = lang.delayedCall(function () { 11 | this.updateStatus(editor); 12 | }.bind(this)).schedule.bind(null, 100); 13 | editor.on("changeStatus", statusUpdate); 14 | editor.on("changeSelection", statusUpdate); 15 | editor.on("keyboardActivity", statusUpdate); 16 | } 17 | StatusBar.prototype.updateStatus = function (editor) { 18 | var status = []; 19 | function add(str, separator) { 20 | str && status.push(str, separator || "|"); 21 | } 22 | add(editor.keyBinding.getStatusText(editor)); 23 | if (editor.commands.recording) 24 | add("REC"); 25 | var sel = editor.selection; 26 | var c = sel.lead; 27 | if (!sel.isEmpty()) { 28 | var r = editor.getSelectionRange(); 29 | add("(" + (r.end.row - r.start.row) + ":" + (r.end.column - r.start.column) + ")", " "); 30 | } 31 | add(c.row + ":" + c.column, " "); 32 | if (sel.rangeCount) 33 | add("[" + sel.rangeCount + "]", " "); 34 | status.pop(); 35 | this.element.textContent = status.join(""); 36 | }; 37 | return StatusBar; 38 | }()); 39 | exports.StatusBar = StatusBar; 40 | 41 | }); 42 | (function() { 43 | window.require(["ace/ext/statusbar"], function(m) { 44 | if (typeof module == "object" && typeof exports == "object" && module) { 45 | module.exports = m; 46 | } 47 | }); 48 | })(); 49 | -------------------------------------------------------------------------------- /ace/ext-themelist.js: -------------------------------------------------------------------------------- 1 | define("ace/ext/themelist",["require","exports","module"], function(require, exports, module){/** 2 | * Generates a list of themes available when ace was built. 3 | * @fileOverview Generates a list of themes available when ace was built. 4 | * @author 5 | * Matthew Christopher Kastor-Inare III
6 | * ☭ Hial Atropa!! ☭ 7 | */ 8 | "use strict"; 9 | var themeData = [ 10 | ["Chrome"], 11 | ["Clouds"], 12 | ["Crimson Editor"], 13 | ["Dawn"], 14 | ["Dreamweaver"], 15 | ["Eclipse"], 16 | ["GitHub"], 17 | ["IPlastic"], 18 | ["Solarized Light"], 19 | ["TextMate"], 20 | ["Tomorrow"], 21 | ["XCode"], 22 | ["Kuroir"], 23 | ["KatzenMilch"], 24 | ["SQL Server", "sqlserver", "light"], 25 | ["Ambiance", "ambiance", "dark"], 26 | ["Chaos", "chaos", "dark"], 27 | ["Clouds Midnight", "clouds_midnight", "dark"], 28 | ["Dracula", "", "dark"], 29 | ["Cobalt", "cobalt", "dark"], 30 | ["Gruvbox", "gruvbox", "dark"], 31 | ["Green on Black", "gob", "dark"], 32 | ["idle Fingers", "idle_fingers", "dark"], 33 | ["krTheme", "kr_theme", "dark"], 34 | ["Merbivore", "merbivore", "dark"], 35 | ["Merbivore Soft", "merbivore_soft", "dark"], 36 | ["Mono Industrial", "mono_industrial", "dark"], 37 | ["Monokai", "monokai", "dark"], 38 | ["Nord Dark", "nord_dark", "dark"], 39 | ["One Dark", "one_dark", "dark"], 40 | ["Pastel on dark", "pastel_on_dark", "dark"], 41 | ["Solarized Dark", "solarized_dark", "dark"], 42 | ["Terminal", "terminal", "dark"], 43 | ["Tomorrow Night", "tomorrow_night", "dark"], 44 | ["Tomorrow Night Blue", "tomorrow_night_blue", "dark"], 45 | ["Tomorrow Night Bright", "tomorrow_night_bright", "dark"], 46 | ["Tomorrow Night 80s", "tomorrow_night_eighties", "dark"], 47 | ["Twilight", "twilight", "dark"], 48 | ["Vibrant Ink", "vibrant_ink", "dark"] 49 | ]; 50 | exports.themesByName = {}; 51 | exports.themes = themeData.map(function (data) { 52 | var name = data[1] || data[0].replace(/ /g, "_").toLowerCase(); 53 | var theme = { 54 | caption: data[0], 55 | theme: "ace/theme/" + name, 56 | isDark: data[2] == "dark", 57 | name: name 58 | }; 59 | exports.themesByName[name] = theme; 60 | return theme; 61 | }); 62 | 63 | }); 64 | (function() { 65 | window.require(["ace/ext/themelist"], function(m) { 66 | if (typeof module == "object" && typeof exports == "object" && module) { 67 | module.exports = m; 68 | } 69 | }); 70 | })(); 71 | -------------------------------------------------------------------------------- /ace/mode-csp.js: -------------------------------------------------------------------------------- 1 | define("ace/mode/csp_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){/* 2 | EXPLANATION 3 | 4 | This highlight rules were created to help developer spot typos when working 5 | with Content-Security-Policy (CSP). See: 6 | https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/ 7 | */ 8 | "use strict"; 9 | var oop = require("../lib/oop"); 10 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; 11 | var CspHighlightRules = function () { 12 | var keywordMapper = this.createKeywordMapper({ 13 | "constant.language": "child-src|connect-src|default-src|font-src|frame-src|img-src|manifest-src|media-src|object-src" 14 | + "|script-src|style-src|worker-src|base-uri|plugin-types|sandbox|disown-opener|form-action|frame-ancestors|report-uri" 15 | + "|report-to|upgrade-insecure-requests|block-all-mixed-content|require-sri-for|reflected-xss|referrer|policy-uri", 16 | "variable": "'none'|'self'|'unsafe-inline'|'unsafe-eval'|'strict-dynamic'|'unsafe-hashed-attributes'" 17 | }, "identifier", true); 18 | this.$rules = { 19 | start: [{ 20 | token: "string.link", 21 | regex: /https?:[^;\s]*/ 22 | }, { 23 | token: "operator.punctuation", 24 | regex: /;/ 25 | }, { 26 | token: keywordMapper, 27 | regex: /[^\s;]+/ 28 | }] 29 | }; 30 | }; 31 | oop.inherits(CspHighlightRules, TextHighlightRules); 32 | exports.CspHighlightRules = CspHighlightRules; 33 | 34 | }); 35 | 36 | define("ace/mode/csp",["require","exports","module","ace/mode/text","ace/mode/csp_highlight_rules","ace/lib/oop"], function(require, exports, module){/* 37 | THIS FILE WAS AUTOGENERATED BY mode.tmpl.js 38 | */ 39 | "use strict"; 40 | var TextMode = require("./text").Mode; 41 | var CspHighlightRules = require("./csp_highlight_rules").CspHighlightRules; 42 | var oop = require("../lib/oop"); 43 | var Mode = function () { 44 | this.HighlightRules = CspHighlightRules; 45 | }; 46 | oop.inherits(Mode, TextMode); 47 | (function () { 48 | this.$id = "ace/mode/csp"; 49 | }).call(Mode.prototype); 50 | exports.Mode = Mode; 51 | 52 | }); 53 | (function() { 54 | window.require(["ace/mode/csp"], function(m) { 55 | if (typeof module == "object" && typeof exports == "object" && module) { 56 | module.exports = m; 57 | } 58 | }); 59 | })(); 60 | -------------------------------------------------------------------------------- /ace/mode-gitignore.js: -------------------------------------------------------------------------------- 1 | define("ace/mode/gitignore_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict"; 2 | var oop = require("../lib/oop"); 3 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; 4 | var GitignoreHighlightRules = function () { 5 | this.$rules = { 6 | "start": [ 7 | { 8 | token: "comment", 9 | regex: /^\s*#.*$/ 10 | }, { 11 | token: "keyword", 12 | regex: /^\s*!.*$/ 13 | } 14 | ] 15 | }; 16 | this.normalizeRules(); 17 | }; 18 | GitignoreHighlightRules.metaData = { 19 | fileTypes: ['gitignore'], 20 | name: 'Gitignore' 21 | }; 22 | oop.inherits(GitignoreHighlightRules, TextHighlightRules); 23 | exports.GitignoreHighlightRules = GitignoreHighlightRules; 24 | 25 | }); 26 | 27 | define("ace/mode/gitignore",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/gitignore_highlight_rules"], function(require, exports, module){"use strict"; 28 | var oop = require("../lib/oop"); 29 | var TextMode = require("./text").Mode; 30 | var GitignoreHighlightRules = require("./gitignore_highlight_rules").GitignoreHighlightRules; 31 | var Mode = function () { 32 | this.HighlightRules = GitignoreHighlightRules; 33 | this.$behaviour = this.$defaultBehaviour; 34 | }; 35 | oop.inherits(Mode, TextMode); 36 | (function () { 37 | this.lineCommentStart = "#"; 38 | this.$id = "ace/mode/gitignore"; 39 | }).call(Mode.prototype); 40 | exports.Mode = Mode; 41 | 42 | }); 43 | (function() { 44 | window.require(["ace/mode/gitignore"], function(m) { 45 | if (typeof module == "object" && typeof exports == "object" && module) { 46 | module.exports = m; 47 | } 48 | }); 49 | })(); 50 | -------------------------------------------------------------------------------- /ace/mode-inside_pythonic.js: -------------------------------------------------------------------------------- 1 | define("ace/mode/inside_pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"], function(require, exports, module){"use strict"; 2 | var oop = require("../lib/oop"); 3 | var BaseFoldMode = require("./folding/fold_mode").FoldMode; 4 | var FoldMode = exports.FoldMode = function (markers) { 5 | this.foldingStartMarker = new RegExp("(\\\\?[\\[{])(?:\\s*)$|\\\\?(" + markers + ")(?:\\s*)(?:#.*)?$"); 6 | }; 7 | oop.inherits(FoldMode, BaseFoldMode); 8 | (function () { 9 | this.getFoldWidgetRange = function (session, foldStyle, row) { 10 | var line = session.getLine(row); 11 | var match = line.match(this.foldingStartMarker); 12 | if (match) { 13 | if (match[1]) 14 | return this.openingBracketBlock(session, match[1], row, match.index); 15 | if (match[2]) 16 | return this.indentationBlock(session, row, match.index + match[2].length); 17 | return this.indentationBlock(session, row); 18 | } 19 | }; 20 | }).call(FoldMode.prototype); 21 | 22 | }); 23 | (function() { 24 | window.require(["ace/mode/inside_pythonic"], function(m) { 25 | if (typeof module == "object" && typeof exports == "object" && module) { 26 | module.exports = m; 27 | } 28 | }); 29 | })(); 30 | -------------------------------------------------------------------------------- /ace/mode-plain_text.js: -------------------------------------------------------------------------------- 1 | define("ace/mode/plain_text",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/text_highlight_rules","ace/mode/behaviour"], function(require, exports, module){"use strict"; 2 | var oop = require("../lib/oop"); 3 | var TextMode = require("./text").Mode; 4 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; 5 | var Behaviour = require("./behaviour").Behaviour; 6 | var Mode = function () { 7 | this.HighlightRules = TextHighlightRules; 8 | this.$behaviour = new Behaviour(); 9 | }; 10 | oop.inherits(Mode, TextMode); 11 | (function () { 12 | this.type = "text"; 13 | this.getNextLineIndent = function (state, line, tab) { 14 | return ''; 15 | }; 16 | this.$id = "ace/mode/plain_text"; 17 | }).call(Mode.prototype); 18 | exports.Mode = Mode; 19 | 20 | }); 21 | (function() { 22 | window.require(["ace/mode/plain_text"], function(m) { 23 | if (typeof module == "object" && typeof exports == "object" && module) { 24 | module.exports = m; 25 | } 26 | }); 27 | })(); 28 | -------------------------------------------------------------------------------- /ace/mode-properties.js: -------------------------------------------------------------------------------- 1 | define("ace/mode/properties_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module){"use strict"; 2 | var oop = require("../lib/oop"); 3 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; 4 | var PropertiesHighlightRules = function () { 5 | var escapeRe = /\\u[0-9a-fA-F]{4}|\\/; 6 | this.$rules = { 7 | "start": [ 8 | { 9 | token: "comment", 10 | regex: /[!#].*$/ 11 | }, { 12 | token: "keyword", 13 | regex: /[=:]$/ 14 | }, { 15 | token: "keyword", 16 | regex: /[=:]/, 17 | next: "value" 18 | }, { 19 | token: "constant.language.escape", 20 | regex: escapeRe 21 | }, { 22 | defaultToken: "variable" 23 | } 24 | ], 25 | "value": [ 26 | { 27 | regex: /\\$/, 28 | token: "string", 29 | next: "value" 30 | }, { 31 | regex: /$/, 32 | token: "string", 33 | next: "start" 34 | }, { 35 | token: "constant.language.escape", 36 | regex: escapeRe 37 | }, { 38 | defaultToken: "string" 39 | } 40 | ] 41 | }; 42 | }; 43 | oop.inherits(PropertiesHighlightRules, TextHighlightRules); 44 | exports.PropertiesHighlightRules = PropertiesHighlightRules; 45 | 46 | }); 47 | 48 | define("ace/mode/properties",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/properties_highlight_rules"], function(require, exports, module){"use strict"; 49 | var oop = require("../lib/oop"); 50 | var TextMode = require("./text").Mode; 51 | var PropertiesHighlightRules = require("./properties_highlight_rules").PropertiesHighlightRules; 52 | var Mode = function () { 53 | this.HighlightRules = PropertiesHighlightRules; 54 | this.$behaviour = this.$defaultBehaviour; 55 | }; 56 | oop.inherits(Mode, TextMode); 57 | (function () { 58 | this.$id = "ace/mode/properties"; 59 | }).call(Mode.prototype); 60 | exports.Mode = Mode; 61 | 62 | }); 63 | (function() { 64 | window.require(["ace/mode/properties"], function(m) { 65 | if (typeof module == "object" && typeof exports == "object" && module) { 66 | module.exports = m; 67 | } 68 | }); 69 | })(); 70 | -------------------------------------------------------------------------------- /ace/mode-text.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/mode/text"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/abap.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/abap"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/abc.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/abc.snippets",["require","exports","module"], function(require, exports, module){module.exports = "\nsnippet zupfnoter.print\n\t%%%%hn.print {\"startpos\": ${1:pos_y}, \"t\":\"${2:title}\", \"v\":[${3:voices}], \"s\":[[${4:syncvoices}1,2]], \"f\":[${5:flowlines}], \"sf\":[${6:subflowlines}], \"j\":[${7:jumplines}]}\n\nsnippet zupfnoter.note\n\t%%%%hn.note {\"pos\": [${1:pos_x},${2:pos_y}], \"text\": \"${3:text}\", \"style\": \"${4:style}\"}\n\nsnippet zupfnoter.annotation\n\t%%%%hn.annotation {\"id\": \"${1:id}\", \"pos\": [${2:pos}], \"text\": \"${3:text}\"}\n\nsnippet zupfnoter.lyrics\n\t%%%%hn.lyrics {\"pos\": [${1:x_pos},${2:y_pos}]}\n\nsnippet zupfnoter.legend\n\t%%%%hn.legend {\"pos\": [${1:x_pos},${2:y_pos}]}\n\n\n\nsnippet zupfnoter.target\n\t\"^:${1:target}\"\n\nsnippet zupfnoter.goto\n\t\"^@${1:target}@${2:distance}\"\n\nsnippet zupfnoter.annotationref\n\t\"^#${1:target}\"\n\nsnippet zupfnoter.annotation\n\t\"^!${1:text}@${2:x_offset},${3:y_offset}\"\n\n\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/abc",["require","exports","module","ace/snippets/abc.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./abc.snippets"); 7 | exports.scope = "abc"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/abc"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/ada.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/ada"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/alda.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/alda"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/apache_conf.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/apache_conf"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/apex.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/apex"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/applescript.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/applescript"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/aql.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/aql"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/asciidoc.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/asciidoc"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/asl.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/asl"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/assembly_x86.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/assembly_x86"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/autohotkey.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/autohotkey"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/batchfile.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/batchfile"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/bibtex.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/bibtex"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/c9search.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/c9search"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/cirru.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/cirru"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/clojure.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/clojure.snippets",["require","exports","module"], function(require, exports, module){module.exports = "snippet comm\n\t(comment\n\t ${1}\n\t )\nsnippet condp\n\t(condp ${1:pred} ${2:expr}\n\t ${3})\nsnippet def\n\t(def ${1})\nsnippet defm\n\t(defmethod ${1:multifn} \"${2:doc-string}\" ${3:dispatch-val} [${4:args}]\n\t ${5})\nsnippet defmm\n\t(defmulti ${1:name} \"${2:doc-string}\" ${3:dispatch-fn})\nsnippet defma\n\t(defmacro ${1:name} \"${2:doc-string}\" ${3:dispatch-fn})\nsnippet defn\n\t(defn ${1:name} \"${2:doc-string}\" [${3:arg-list}]\n\t ${4})\nsnippet defp\n\t(defprotocol ${1:name}\n\t ${2})\nsnippet defr\n\t(defrecord ${1:name} [${2:fields}]\n\t ${3:protocol}\n\t ${4})\nsnippet deft\n\t(deftest ${1:name}\n\t (is (= ${2:assertion})))\n\t ${3})\nsnippet is\n\t(is (= ${1} ${2}))\nsnippet defty\n\t(deftype ${1:Name} [${2:fields}]\n\t ${3:Protocol}\n\t ${4})\nsnippet doseq\n\t(doseq [${1:elem} ${2:coll}]\n\t ${3})\nsnippet fn\n\t(fn [${1:arg-list}] ${2})\nsnippet if\n\t(if ${1:test-expr}\n\t ${2:then-expr}\n\t ${3:else-expr})\nsnippet if-let \n\t(if-let [${1:result} ${2:test-expr}]\n\t\t(${3:then-expr} $1)\n\t\t(${4:else-expr}))\nsnippet imp\n\t(:import [${1:package}])\n\t& {:keys [${1:keys}] :or {${2:defaults}}}\nsnippet let\n\t(let [${1:name} ${2:expr}]\n\t\t${3})\nsnippet letfn\n\t(letfn [(${1:name) [${2:args}]\n\t ${3})])\nsnippet map\n\t(map ${1:func} ${2:coll})\nsnippet mapl\n\t(map #(${1:lambda}) ${2:coll})\nsnippet met\n\t(${1:name} [${2:this} ${3:args}]\n\t ${4})\nsnippet ns\n\t(ns ${1:name}\n\t ${2})\nsnippet dotimes\n\t(dotimes [_ 10]\n\t (time\n\t (dotimes [_ ${1:times}]\n\t ${2})))\nsnippet pmethod\n\t(${1:name} [${2:this} ${3:args}])\nsnippet refer\n\t(:refer-clojure :exclude [${1}])\nsnippet require\n\t(:require [${1:namespace} :as [${2}]])\nsnippet use\n\t(:use [${1:namespace} :only [${2}]])\nsnippet print\n\t(println ${1})\nsnippet reduce\n\t(reduce ${1:(fn [p n] ${3})} ${2})\nsnippet when\n\t(when ${1:test} ${2:body})\nsnippet when-let\n\t(when-let [${1:result} ${2:test}]\n\t\t${3:body})\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/clojure",["require","exports","module","ace/snippets/clojure.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./clojure.snippets"); 7 | exports.scope = "clojure"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/clojure"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/cobol.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/cobol"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/coldfusion.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/coldfusion"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/crystal.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/crystal"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/csharp.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/csharp"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/csound_document.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/csound_document.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# \nsnippet synth\n\t\n\t\n\t${1}\n\t\n\t\n\te\n\t\n\t\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/csound_document",["require","exports","module","ace/snippets/csound_document.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./csound_document.snippets"); 7 | exports.scope = "csound_document"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/csound_document"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/csound_orchestra.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/csound_orchestra.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# else\nsnippet else\n\telse\n\t\t${1:/* statements */}\n# elseif\nsnippet elseif\n\telseif ${1:/* condition */} then\n\t\t${2:/* statements */}\n# if\nsnippet if\n\tif ${1:/* condition */} then\n\t\t${2:/* statements */}\n\tendif\n# instrument block\nsnippet instr\n\tinstr ${1:name}\n\t\t${2:/* statements */}\n\tendin\n# i-time while loop\nsnippet iwhile\n\ti${1:Index} = ${2:0}\n\twhile i${1:Index} < ${3:/* count */} do\n\t\t${4:/* statements */}\n\t\ti${1:Index} += 1\n\tod\n# k-rate while loop\nsnippet kwhile\n\tk${1:Index} = ${2:0}\n\twhile k${1:Index} < ${3:/* count */} do\n\t\t${4:/* statements */}\n\t\tk${1:Index} += 1\n\tod\n# opcode\nsnippet opcode\n\topcode ${1:name}, ${2:/* output types */ 0}, ${3:/* input types */ 0}\n\t\t${4:/* statements */}\n\tendop\n# until loop\nsnippet until\n\tuntil ${1:/* condition */} do\n\t\t${2:/* statements */}\n\tod\n# while loop\nsnippet while\n\twhile ${1:/* condition */} do\n\t\t${2:/* statements */}\n\tod\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/csound_orchestra",["require","exports","module","ace/snippets/csound_orchestra.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./csound_orchestra.snippets"); 7 | exports.scope = "csound_orchestra"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/csound_orchestra"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/csound_score.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/csound_score"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/csp.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/csp"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/curly.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/curly"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/d.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/d"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/dart.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/dart.snippets",["require","exports","module"], function(require, exports, module){module.exports = "snippet lib\n\tlibrary ${1};\n\t${2}\nsnippet im\n\timport '${1}';\n\t${2}\nsnippet pa\n\tpart '${1}';\n\t${2}\nsnippet pao\n\tpart of ${1};\n\t${2}\nsnippet main\n\tvoid main() {\n\t ${1:/* code */}\n\t}\nsnippet st\n\tstatic ${1}\nsnippet fi\n\tfinal ${1}\nsnippet re\n\treturn ${1}\nsnippet br\n\tbreak;\nsnippet th\n\tthrow ${1}\nsnippet cl\n\tclass ${1:`Filename(\"\", \"untitled\")`} ${2}\nsnippet imp\n\timplements ${1}\nsnippet ext\n\textends ${1}\nsnippet if\n\tif (${1:true}) {\n\t ${2}\n\t}\nsnippet ife\n\tif (${1:true}) {\n\t ${2}\n\t} else {\n\t ${3}\n\t}\nsnippet el\n\telse\nsnippet sw\n\tswitch (${1}) {\n\t ${2}\n\t}\nsnippet cs\n\tcase ${1}:\n\t ${2}\nsnippet de\n\tdefault:\n\t ${1}\nsnippet for\n\tfor (var ${2:i} = 0, len = ${1:things}.length; $2 < len; ${3:++}$2) {\n\t ${4:$1[$2]}\n\t}\nsnippet fore\n\tfor (final ${2:item} in ${1:itemList}) {\n\t ${3:/* code */}\n\t}\nsnippet wh\n\twhile (${1:/* condition */}) {\n\t ${2:/* code */}\n\t}\nsnippet dowh\n\tdo {\n\t ${2:/* code */}\n\t} while (${1:/* condition */});\nsnippet as\n\tassert(${1:/* condition */});\nsnippet try\n\ttry {\n\t ${2}\n\t} catch (${1:Exception e}) {\n\t}\nsnippet tryf\n\ttry {\n\t ${2}\n\t} catch (${1:Exception e}) {\n\t} finally {\n\t}\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/dart",["require","exports","module","ace/snippets/dart.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./dart.snippets"); 7 | exports.scope = "dart"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/dart"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/diff.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/diff.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# DEP-3 (http://dep.debian.net/deps/dep3/) style patch header\nsnippet header DEP-3 style header\n\tDescription: ${1}\n\tOrigin: ${2:vendor|upstream|other}, ${3:url of the original patch}\n\tBug: ${4:url in upstream bugtracker}\n\tForwarded: ${5:no|not-needed|url}\n\tAuthor: ${6:`g:snips_author`}\n\tReviewed-by: ${7:name and email}\n\tLast-Update: ${8:`strftime(\"%Y-%m-%d\")`}\n\tApplied-Upstream: ${9:upstream version|url|commit}\n\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/diff",["require","exports","module","ace/snippets/diff.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./diff.snippets"); 7 | exports.scope = "diff"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/diff"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/dockerfile.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/dockerfile"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/dot.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/dot"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/drools.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/drools.snippets",["require","exports","module"], function(require, exports, module){module.exports = "\nsnippet rule\n\trule \"${1?:rule_name}\"\n\twhen\n\t\t${2:// when...} \n\tthen\n\t\t${3:// then...}\n\tend\n\nsnippet query\n\tquery ${1?:query_name}\n\t\t${2:// find} \n\tend\n\t\nsnippet declare\n\tdeclare ${1?:type_name}\n\t\t${2:// attributes} \n\tend\n\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/drools",["require","exports","module","ace/snippets/drools.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./drools.snippets"); 7 | exports.scope = "drools"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/drools"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/eiffel.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/eiffel"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/ejs.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/ejs"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/elixir.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/elixir"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/elm.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/elm"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/forth.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/forth"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/fortran.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/fortran"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/fsharp.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/fsharp"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/fsl.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/fsl.snippets",["require","exports","module"], function(require, exports, module){module.exports = "snippet header\n\tmachine_name : \"\";\n\tmachine_author : \"\";\n\tmachine_license : MIT;\n\tmachine_comment : \"\";\n\tmachine_language : en;\n\tmachine_version : 1.0.0;\n\tfsl_version : 1.0.0;\n\tstart_states : [];\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/fsl",["require","exports","module","ace/snippets/fsl.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./fsl.snippets"); 7 | exports.scope = "fsl"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/fsl"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/ftl.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/ftl"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/gcode.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/gcode"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/gherkin.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/gherkin"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/gitignore.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/gitignore"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/glsl.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/glsl"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/golang.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/golang"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/graphqlschema.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/graphqlschema.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# Type Snippet\ntrigger type\nsnippet type\n\ttype ${1:type_name} {\n\t\t${2:type_siblings}\n\t}\n\n# Input Snippet\ntrigger input\nsnippet input\n\tinput ${1:input_name} {\n\t\t${2:input_siblings}\n\t}\n\n# Interface Snippet\ntrigger interface\nsnippet interface\n\tinterface ${1:interface_name} {\n\t\t${2:interface_siblings}\n\t}\n\n# Interface Snippet\ntrigger union\nsnippet union\n\tunion ${1:union_name} = ${2:type} | ${3: type}\n\n# Enum Snippet\ntrigger enum\nsnippet enum\n\tenum ${1:enum_name} {\n\t\t${2:enum_siblings}\n\t}\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/graphqlschema",["require","exports","module","ace/snippets/graphqlschema.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./graphqlschema.snippets"); 7 | exports.scope = "graphqlschema"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/graphqlschema"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/groovy.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/groovy"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/haml.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/haml.snippets",["require","exports","module"], function(require, exports, module){module.exports = "snippet t\n\t%table\n\t\t%tr\n\t\t\t%th\n\t\t\t\t${1:headers}\n\t\t%tr\n\t\t\t%td\n\t\t\t\t${2:headers}\nsnippet ul\n\t%ul\n\t\t%li\n\t\t\t${1:item}\n\t\t%li\nsnippet =rp\n\t= render :partial => '${1:partial}'\nsnippet =rpl\n\t= render :partial => '${1:partial}', :locals => {}\nsnippet =rpc\n\t= render :partial => '${1:partial}', :collection => @$1\n\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/haml",["require","exports","module","ace/snippets/haml.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./haml.snippets"); 7 | exports.scope = "haml"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/haml"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/handlebars.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/handlebars"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/haskell.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/haskell.snippets",["require","exports","module"], function(require, exports, module){module.exports = "snippet lang\n\t{-# LANGUAGE ${1:OverloadedStrings} #-}\nsnippet info\n\t-- |\n\t-- Module : ${1:Module.Namespace}\n\t-- Copyright : ${2:Author} ${3:2011-2012}\n\t-- License : ${4:BSD3}\n\t--\n\t-- Maintainer : ${5:email@something.com}\n\t-- Stability : ${6:experimental}\n\t-- Portability : ${7:unknown}\n\t--\n\t-- ${8:Description}\n\t--\nsnippet import\n\timport ${1:Data.Text}\nsnippet import2\n\timport ${1:Data.Text} (${2:head})\nsnippet importq\n\timport qualified ${1:Data.Text} as ${2:T}\nsnippet inst\n\tinstance ${1:Monoid} ${2:Type} where\n\t\t${3}\nsnippet type\n\ttype ${1:Type} = ${2:Type}\nsnippet data\n\tdata ${1:Type} = ${2:$1} ${3:Int}\nsnippet newtype\n\tnewtype ${1:Type} = ${2:$1} ${3:Int}\nsnippet class\n\tclass ${1:Class} a where\n\t\t${2}\nsnippet module\n\tmodule `substitute(substitute(expand('%:r'), '[/\\\\]','.','g'),'^\\%(\\l*\\.\\)\\?','','')` (\n\t)\twhere\n\t`expand('%') =~ 'Main' ? \"\\n\\nmain = do\\n print \\\"hello world\\\"\" : \"\"`\n\nsnippet const\n\t${1:name} :: ${2:a}\n\t$1 = ${3:undefined}\nsnippet fn\n\t${1:fn} :: ${2:a} -> ${3:a}\n\t$1 ${4} = ${5:undefined}\nsnippet fn2\n\t${1:fn} :: ${2:a} -> ${3:a} -> ${4:a}\n\t$1 ${5} = ${6:undefined}\nsnippet ap\n\t${1:map} ${2:fn} ${3:list}\nsnippet do\n\tdo\n\t\t\nsnippet \u03BB\n\t\\${1:x} -> ${2}\nsnippet \\\n\t\\${1:x} -> ${2}\nsnippet <-\n\t${1:a} <- ${2:m a}\nsnippet \u2190\n\t${1:a} <- ${2:m a}\nsnippet ->\n\t${1:m a} -> ${2:a}\nsnippet \u2192\n\t${1:m a} -> ${2:a}\nsnippet tup\n\t(${1:a}, ${2:b})\nsnippet tup2\n\t(${1:a}, ${2:b}, ${3:c})\nsnippet tup3\n\t(${1:a}, ${2:b}, ${3:c}, ${4:d})\nsnippet rec\n\t${1:Record} { ${2:recFieldA} = ${3:undefined}\n\t\t\t\t, ${4:recFieldB} = ${5:undefined}\n\t\t\t\t}\nsnippet case\n\tcase ${1:something} of\n\t\t${2} -> ${3}\nsnippet let\n\tlet ${1} = ${2}\n\tin ${3}\nsnippet where\n\twhere\n\t\t${1:fn} = ${2:undefined}\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/haskell",["require","exports","module","ace/snippets/haskell.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./haskell.snippets"); 7 | exports.scope = "haskell"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/haskell"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/haskell_cabal.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/haskell_cabal"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/haxe.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/haxe"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/hjson.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/hjson"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/html_elixir.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/html_elixir"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/html_ruby.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/html_ruby"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/ini.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/ini"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/inside_python.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/inside_python",["require","exports","module"], function(require, exports, module) {"use strict"; 2 | 3 | exports.snippetText =undefined; 4 | exports.scope = ""; 5 | }); 6 | (function() { 7 | window.require(["ace/snippets/inside_python"], function(m) { 8 | if (typeof module == "object" && typeof exports == "object" && module) { 9 | module.exports = m; 10 | } 11 | }); 12 | })(); 13 | -------------------------------------------------------------------------------- /ace/snippets/inside_pythonic.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/inside_pythonic"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/io.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/io",["require","exports","module"], function(require, exports, module){"use strict"; 2 | exports.snippets = [ 3 | { 4 | "content": "assertEquals(${1:expected}, ${2:expr})", 5 | "name": "assertEquals", 6 | "scope": "io", 7 | "tabTrigger": "ae" 8 | }, 9 | { 10 | "content": "${1:${2:newValue} := ${3:Object} }clone do(\n\t$0\n)", 11 | "name": "clone do", 12 | "scope": "io", 13 | "tabTrigger": "cdo" 14 | }, 15 | { 16 | "content": "docSlot(\"${1:slotName}\", \"${2:documentation}\")", 17 | "name": "docSlot", 18 | "scope": "io", 19 | "tabTrigger": "ds" 20 | }, 21 | { 22 | "content": "(${1:header,}\n\t${2:body}\n)$0", 23 | "keyEquivalent": "@(", 24 | "name": "Indented Bracketed Line", 25 | "scope": "io", 26 | "tabTrigger": "(" 27 | }, 28 | { 29 | "content": "\n\t$0\n", 30 | "keyEquivalent": "\r", 31 | "name": "Special: Return Inside Empty Parenthesis", 32 | "scope": "io meta.empty-parenthesis.io, io meta.comma-parenthesis.io" 33 | }, 34 | { 35 | "content": "${1:methodName} := method(${2:args,}\n\t$0\n)", 36 | "name": "method", 37 | "scope": "io", 38 | "tabTrigger": "m" 39 | }, 40 | { 41 | "content": "newSlot(\"${1:slotName}\", ${2:defaultValue}, \"${3:docString}\")$0", 42 | "name": "newSlot", 43 | "scope": "io", 44 | "tabTrigger": "ns" 45 | }, 46 | { 47 | "content": "${1:name} := Object clone do(\n\t$0\n)", 48 | "name": "Object clone do", 49 | "scope": "io", 50 | "tabTrigger": "ocdo" 51 | }, 52 | { 53 | "content": "test${1:SomeFeature} := method(\n\t$0\n)", 54 | "name": "testMethod", 55 | "scope": "io", 56 | "tabTrigger": "ts" 57 | }, 58 | { 59 | "content": "${1:Something}Test := ${2:UnitTest} clone do(\n\t$0\n)", 60 | "name": "UnitTest", 61 | "scope": "io", 62 | "tabTrigger": "ut" 63 | } 64 | ]; 65 | exports.scope = "io"; 66 | 67 | }); 68 | (function() { 69 | window.require(["ace/snippets/io"], function(m) { 70 | if (typeof module == "object" && typeof exports == "object" && module) { 71 | module.exports = m; 72 | } 73 | }); 74 | })(); 75 | -------------------------------------------------------------------------------- /ace/snippets/ion.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/ion"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/jack.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/jack"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/jade.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/jade"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/jexl.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/jexl"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/json.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/json"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/json5.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/json5"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/jsoniq.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/jsoniq.snippets",["require","exports","module"], function(require, exports, module) {module.exports = 'snippet for\n\ 2 | for \$\${1:item} in \${2:expr}\n\ 3 | snippet return\n\ 4 | return \${1:expr}\n\ 5 | snippet import\n\ 6 | import module namespace \${1:ns} = "\${2:http://www.example.com/}";\n\ 7 | snippet some\n\ 8 | some \$\${1:varname} in \${2:expr} satisfies \${3:expr}\n\ 9 | snippet every\n\ 10 | every \$\${1:varname} in \${2:expr} satisfies \${3:expr}\n\ 11 | snippet if\n\ 12 | if(\${1:true}) then \${2:expr} else \${3:true}\n\ 13 | snippet switch\n\ 14 | switch(\${1:"foo"})\n\ 15 | case \${2:"foo"}\n\ 16 | return \${3:true}\n\ 17 | default return \${4:false}\n\ 18 | snippet try\n\ 19 | try { \${1:expr} } catch \${2:*} { \${3:expr} }\n\ 20 | snippet tumbling\n\ 21 | for tumbling window \$\${1:varname} in \${2:expr}\n\ 22 | start at \$\${3:start} when \${4:expr}\n\ 23 | end at \$\${5:end} when \${6:expr}\n\ 24 | return \${7:expr}\n\ 25 | snippet sliding\n\ 26 | for sliding window \$\${1:varname} in \${2:expr}\n\ 27 | start at \$\${3:start} when \${4:expr}\n\ 28 | end at \$\${5:end} when \${6:expr}\n\ 29 | return \${7:expr}\n\ 30 | snippet let\n\ 31 | let \$\${1:varname} := \${2:expr}\n\ 32 | snippet group\n\ 33 | group by \$\${1:varname} := \${2:expr}\n\ 34 | snippet order\n\ 35 | order by \${1:expr} \${2:descending}\n\ 36 | snippet stable\n\ 37 | stable order by \${1:expr}\n\ 38 | snippet count\n\ 39 | count \$\${1:varname}\n\ 40 | snippet ordered\n\ 41 | ordered { \${1:expr} }\n\ 42 | snippet unordered\n\ 43 | unordered { \${1:expr} }\n\ 44 | snippet treat \n\ 45 | treat as \${1:expr}\n\ 46 | snippet castable\n\ 47 | castable as \${1:atomicType}\n\ 48 | snippet cast\n\ 49 | cast as \${1:atomicType}\n\ 50 | snippet typeswitch\n\ 51 | typeswitch(\${1:expr})\n\ 52 | case \${2:type} return \${3:expr}\n\ 53 | default return \${4:expr}\n\ 54 | snippet var\n\ 55 | declare variable \$\${1:varname} := \${2:expr};\n\ 56 | snippet fn\n\ 57 | declare function \${1:ns}:\${2:name}(){\n\ 58 | \${3:expr}\n\ 59 | };\n\ 60 | snippet module\n\ 61 | module namespace \${1:ns} = "\${2:http://www.example.com}";\n\ 62 | '; 63 | 64 | }); 65 | 66 | define("ace/snippets/jsoniq",["require","exports","module","ace/snippets/jsoniq.snippets"], function(require, exports, module) {"use strict"; 67 | 68 | exports.snippetText = require("./jsoniq.snippets"); 69 | exports.scope = "jsoniq"; 70 | 71 | }); 72 | (function() { 73 | window.require(["ace/snippets/jsoniq"], function(m) { 74 | if (typeof module == "object" && typeof exports == "object" && module) { 75 | module.exports = m; 76 | } 77 | }); 78 | })(); 79 | -------------------------------------------------------------------------------- /ace/snippets/jssm.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/jssm"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/jsx.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/jsx"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/julia.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/julia"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/kotlin.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/kotlin"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/latex.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/latex"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/latte.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/latte"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/less.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/less"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/lisp.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/lisp"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/livescript.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/livescript"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/logiql.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/logiql"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/logtalk.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/logtalk"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/lua.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/lua.snippets",["require","exports","module"], function(require, exports, module){module.exports = "snippet #!\n\t#!/usr/bin/env lua\n\t$1\nsnippet local\n\tlocal ${1:x} = ${2:1}\nsnippet fun\n\tfunction ${1:fname}(${2:...})\n\t\t${3:-- body}\n\tend\nsnippet for\n\tfor ${1:i}=${2:1},${3:10} do\n\t\t${4:print(i)}\n\tend\nsnippet forp\n\tfor ${1:i},${2:v} in pairs(${3:table_name}) do\n\t ${4:-- body}\n\tend\nsnippet fori\n\tfor ${1:i},${2:v} in ipairs(${3:table_name}) do\n\t ${4:-- body}\n\tend\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/lua",["require","exports","module","ace/snippets/lua.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./lua.snippets"); 7 | exports.scope = "lua"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/lua"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/luapage.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/luapage"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/lucene.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/lucene"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/makefile.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/makefile.snippets",["require","exports","module"], function(require, exports, module){module.exports = "snippet ifeq\n\tifeq (${1:cond0},${2:cond1})\n\t\t${3:code}\n\tendif\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/makefile",["require","exports","module","ace/snippets/makefile.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./makefile.snippets"); 7 | exports.scope = "makefile"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/makefile"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/markdown.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/markdown.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# Markdown\n\n# Includes octopress (http://octopress.org/) snippets\n\nsnippet [\n\t[${1:text}](http://${2:address} \"${3:title}\")\nsnippet [*\n\t[${1:link}](${2:`@*`} \"${3:title}\")${4}\n\nsnippet [:\n\t[${1:id}]: http://${2:url} \"${3:title}\"\nsnippet [:*\n\t[${1:id}]: ${2:`@*`} \"${3:title}\"\n\nsnippet ![\n\t![${1:alttext}](${2:/images/image.jpg} \"${3:title}\")\nsnippet ![*\n\t![${1:alt}](${2:`@*`} \"${3:title}\")${4}\n\nsnippet ![:\n\t![${1:id}]: ${2:url} \"${3:title}\"\nsnippet ![:*\n\t![${1:id}]: ${2:`@*`} \"${3:title}\"\n\nsnippet ===\nregex /^/=+/=*//\n\t${PREV_LINE/./=/g}\n\t\n\t${0}\nsnippet ---\nregex /^/-+/-*//\n\t${PREV_LINE/./-/g}\n\t\n\t${0}\nsnippet blockquote\n\t{% blockquote %}\n\t${1:quote}\n\t{% endblockquote %}\n\nsnippet blockquote-author\n\t{% blockquote ${1:author}, ${2:title} %}\n\t${3:quote}\n\t{% endblockquote %}\n\nsnippet blockquote-link\n\t{% blockquote ${1:author} ${2:URL} ${3:link_text} %}\n\t${4:quote}\n\t{% endblockquote %}\n\nsnippet bt-codeblock-short\n\t```\n\t${1:code_snippet}\n\t```\n\nsnippet bt-codeblock-full\n\t``` ${1:language} ${2:title} ${3:URL} ${4:link_text}\n\t${5:code_snippet}\n\t```\n\nsnippet codeblock-short\n\t{% codeblock %}\n\t${1:code_snippet}\n\t{% endcodeblock %}\n\nsnippet codeblock-full\n\t{% codeblock ${1:title} lang:${2:language} ${3:URL} ${4:link_text} %}\n\t${5:code_snippet}\n\t{% endcodeblock %}\n\nsnippet gist-full\n\t{% gist ${1:gist_id} ${2:filename} %}\n\nsnippet gist-short\n\t{% gist ${1:gist_id} %}\n\nsnippet img\n\t{% img ${1:class} ${2:URL} ${3:width} ${4:height} ${5:title_text} ${6:alt_text} %}\n\nsnippet youtube\n\t{% youtube ${1:video_id} %}\n\n# The quote should appear only once in the text. It is inherently part of it.\n# See http://octopress.org/docs/plugins/pullquote/ for more info.\n\nsnippet pullquote\n\t{% pullquote %}\n\t${1:text} {\" ${2:quote} \"} ${3:text}\n\t{% endpullquote %}\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/markdown",["require","exports","module","ace/snippets/markdown.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./markdown.snippets"); 7 | exports.scope = "markdown"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/markdown"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/mask.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/mask"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/matlab.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/matlab"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/maze.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/maze.snippets",["require","exports","module"], function(require, exports, module){module.exports = "snippet >\ndescription assignment\nscope maze\n\t-> ${1}= ${2}\n\nsnippet >\ndescription if\nscope maze\n\t-> IF ${2:**} THEN %${3:L} ELSE %${4:R}\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/maze",["require","exports","module","ace/snippets/maze.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./maze.snippets"); 7 | exports.scope = "maze"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/maze"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/mediawiki.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/mediawiki"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/mel.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/mel"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/mips.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/mips"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/mixal.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/mixal"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/mushcode.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/mushcode"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/mysql.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/mysql"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/nginx.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/nginx"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/nim.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/nim"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/nix.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/nix"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/nsis.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/nsis"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/nunjucks.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/nunjucks"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/objectivec.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/objectivec"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/ocaml.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/ocaml"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/partiql.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/partiql"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/pascal.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/pascal"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/pgsql.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/pgsql"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/php_laravel_blade.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/php_laravel_blade"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/pig.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/pig"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/plain_text.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/plain_text"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/plsql.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/plsql"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/powershell.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/powershell"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/praat.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/praat"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/prisma.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/prisma"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/prolog.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/prolog"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/properties.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/properties"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/protobuf.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/protobuf"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/puppet.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/puppet"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/qml.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/qml"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/raku.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/raku"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/razor.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/razor.snippets",["require","exports","module"], function(require, exports, module){module.exports = "snippet if\n(${1} == ${2}) {\n\t${3}\n}"; 2 | 3 | }); 4 | 5 | define("ace/snippets/razor",["require","exports","module","ace/snippets/razor.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./razor.snippets"); 7 | exports.scope = "razor"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/razor"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/rdoc.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/rdoc"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/red.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/red"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/redshift.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/redshift"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/rhtml.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/rhtml"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/robot.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/robot.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# scope: robot\n### Sections\nsnippet settingssection\ndescription *** Settings *** section\n\t*** Settings ***\n\tLibrary ${1}\n\nsnippet keywordssection\ndescription *** Keywords *** section\n\t*** Keywords ***\n\t${1:Keyword Name}\n\t [Arguments] \\${${2:Example Arg 1}}\n\t\nsnippet testcasessection\ndescription *** Test Cases *** section\n\t*** Test Cases ***\n\t${1:First Test Case}\n\t ${2:Log Example Arg}\n\nsnippet variablessection\ndescription *** Variables *** section\n\t*** Variables ***\n\t\\${${1:Variable Name}}= ${2:Variable Value}\n\n### Helpful keywords\nsnippet testcase\ndescription A test case\n\t${1:Test Case Name}\n\t ${2:Log Example log message}\n\t\nsnippet keyword\ndescription A keyword\n\t${1:Example Keyword}\n\t [Arguments] \\${${2:Example Arg 1}}\n\n### Built Ins\nsnippet forinr\ndescription For In Range Loop\n\tFOR \\${${1:Index}} IN RANGE \\${${2:10}}\n\t Log \\${${1:Index}}\n\tEND\n\nsnippet forin\ndescription For In Loop\n\tFOR \\${${1:Item}} IN @{${2:List Variable}}\n\t Log \\${${1:Item}}\n\tEND\n\nsnippet if\ndescription If Statement\n\tIF ${1:condition}\n\t ${2:Do something}\n\tEND\n\nsnippet else\ndescription If Statement\n\tIF ${1:Condition}\n\t ${2:Do something}\n\tELSE\n\t ${3:Otherwise do this}\n\tEND\n\nsnippet elif\ndescription Else-If Statement\n\tIF ${1:Condition 1}\n\t ${2:Do something}\n\tELSE IF ${3:Condition 2}\n\t ${4:Do something else}\n\tEND\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/robot",["require","exports","module","ace/snippets/robot.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./robot.snippets"); 7 | exports.scope = "robot"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/robot"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/rst.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/rst.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# rst\n\nsnippet :\n\t:${1:field name}: ${2:field body}\nsnippet *\n\t*${1:Emphasis}*\nsnippet **\n\t**${1:Strong emphasis}**\nsnippet _\n\t\\`${1:hyperlink-name}\\`_\n\t.. _\\`$1\\`: ${2:link-block}\nsnippet =\n\t${1:Title}\n\t=====${2:=}\n\t${3}\nsnippet -\n\t${1:Title}\n\t-----${2:-}\n\t${3}\nsnippet cont:\n\t.. contents::\n\t\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/rst",["require","exports","module","ace/snippets/rst.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./rst.snippets"); 7 | exports.scope = "rst"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/rst"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/rust.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/rust"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/sac.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/sac"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/sass.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/sass"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/scad.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/scad"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/scala.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/scala"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/scheme.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/scheme"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/scrypt.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/scrypt"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/scss.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/scss"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/sdprompt.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/sdprompt",["require","exports","module"], function(require, exports, module) {"use strict"; 2 | 3 | exports.snippetText =undefined; 4 | exports.scope = ""; 5 | }); 6 | (function() { 7 | window.require(["ace/snippets/sdprompt"], function(m) { 8 | if (typeof module == "object" && typeof exports == "object" && module) { 9 | module.exports = m; 10 | } 11 | }); 12 | })(); 13 | -------------------------------------------------------------------------------- /ace/snippets/sh.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/sh.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# Shebang. Executing bash via /usr/bin/env makes scripts more portable.\nsnippet #!\n\t#!/usr/bin/env bash\n\t\nsnippet if\n\tif [[ ${1:condition} ]]; then\n\t\t${2:#statements}\n\tfi\nsnippet elif\n\telif [[ ${1:condition} ]]; then\n\t\t${2:#statements}\nsnippet for\n\tfor (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do\n\t\t${3:#statements}\n\tdone\nsnippet fori\n\tfor ${1:needle} in ${2:haystack} ; do\n\t\t${3:#statements}\n\tdone\nsnippet wh\n\twhile [[ ${1:condition} ]]; do\n\t\t${2:#statements}\n\tdone\nsnippet until\n\tuntil [[ ${1:condition} ]]; do\n\t\t${2:#statements}\n\tdone\nsnippet case\n\tcase ${1:word} in\n\t\t${2:pattern})\n\t\t\t${3};;\n\tesac\nsnippet go \n\twhile getopts '${1:o}' ${2:opts} \n\tdo \n\t\tcase $$2 in\n\t\t${3:o0})\n\t\t\t${4:#staments};;\n\t\tesac\n\tdone\n# Set SCRIPT_DIR variable to directory script is located.\nsnippet sdir\n\tSCRIPT_DIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\"\n# getopt\nsnippet getopt\n\t__ScriptVersion=\"${1:version}\"\n\n\t#=== FUNCTION ================================================================\n\t# NAME: usage\n\t# DESCRIPTION: Display usage information.\n\t#===============================================================================\n\tfunction usage ()\n\t{\n\t\t\tcat <<- EOT\n\n\t Usage : $${0:0} [options] [--] \n\n\t Options: \n\t -h|help Display this message\n\t -v|version Display script version\n\n\tEOT\n\t} # ---------- end of function usage ----------\n\n\t#-----------------------------------------------------------------------\n\t# Handle command line arguments\n\t#-----------------------------------------------------------------------\n\n\twhile getopts \":hv\" opt\n\tdo\n\t case $opt in\n\n\t\th|help ) usage; exit 0 ;;\n\n\t\tv|version ) echo \"$${0:0} -- Version $__ScriptVersion\"; exit 0 ;;\n\n\t\t\\? ) echo -e \"\\n Option does not exist : $OPTARG\\n\"\n\t\t\t usage; exit 1 ;;\n\n\t esac # --- end of case ---\n\tdone\n\tshift $(($OPTIND-1))\n\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/sh",["require","exports","module","ace/snippets/sh.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./sh.snippets"); 7 | exports.scope = "sh"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/sh"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/sjs.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/sjs"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/slim.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/slim"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/smarty.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/smarty"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/smithy.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/smithy"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/snippets.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/snippets.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# snippets for making snippets :)\nsnippet snip\n\tsnippet ${1:trigger}\n\t\t${2}\nsnippet msnip\n\tsnippet ${1:trigger} ${2:description}\n\t\t${3}\nsnippet v\n\t{VISUAL}\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/snippets",["require","exports","module","ace/snippets/snippets.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./snippets.snippets"); 7 | exports.scope = "snippets"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/snippets"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/soy_template.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/soy_template"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/space.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/space"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/sparql.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/sparql"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/sql.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/sql.snippets",["require","exports","module"], function(require, exports, module){module.exports = "snippet tbl\n\tcreate table ${1:table} (\n\t\t${2:columns}\n\t);\nsnippet col\n\t${1:name}\t${2:type}\t${3:default ''}\t${4:not null}\nsnippet ccol\n\t${1:name}\tvarchar2(${2:size})\t${3:default ''}\t${4:not null}\nsnippet ncol\n\t${1:name}\tnumber\t${3:default 0}\t${4:not null}\nsnippet dcol\n\t${1:name}\tdate\t${3:default sysdate}\t${4:not null}\nsnippet ind\n\tcreate index ${3:$1_$2} on ${1:table}(${2:column});\nsnippet uind\n\tcreate unique index ${1:name} on ${2:table}(${3:column});\nsnippet tblcom\n\tcomment on table ${1:table} is '${2:comment}';\nsnippet colcom\n\tcomment on column ${1:table}.${2:column} is '${3:comment}';\nsnippet addcol\n\talter table ${1:table} add (${2:column} ${3:type});\nsnippet seq\n\tcreate sequence ${1:name} start with ${2:1} increment by ${3:1} minvalue ${4:1};\nsnippet s*\n\tselect * from ${1:table}\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/sql",["require","exports","module","ace/snippets/sql.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./sql.snippets"); 7 | exports.scope = "sql"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/sql"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/sqlserver.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/sqlserver.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# ISNULL\nsnippet isnull\n\tISNULL(${1:check_expression}, ${2:replacement_value})\n# FORMAT\nsnippet format\n\tFORMAT(${1:value}, ${2:format})\n# CAST\nsnippet cast\n\tCAST(${1:expression} AS ${2:data_type})\n# CONVERT\nsnippet convert\n\tCONVERT(${1:data_type}, ${2:expression})\n# DATEPART\nsnippet datepart\n\tDATEPART(${1:datepart}, ${2:date})\n# DATEDIFF\nsnippet datediff\n\tDATEDIFF(${1:datepart}, ${2:startdate}, ${3:enddate})\n# DATEADD\nsnippet dateadd\n\tDATEADD(${1:datepart}, ${2:number}, ${3:date})\n# DATEFROMPARTS \nsnippet datefromparts\n\tDATEFROMPARTS(${1:year}, ${2:month}, ${3:day})\n# OBJECT_DEFINITION\nsnippet objectdef\n\tSELECT OBJECT_DEFINITION(OBJECT_ID('${1:sys.server_permissions /*object name*/}'))\n# STUFF XML\nsnippet stuffxml\n\tSTUFF((SELECT ', ' + ${1:ColumnName}\n\t\tFROM ${2:TableName}\n\t\tWHERE ${3:WhereClause}\n\t\tFOR XML PATH('')), 1, 1, '') AS ${4:Alias}\n\t${5:/*https://msdn.microsoft.com/en-us/library/ms188043.aspx*/}\n# Create Procedure\nsnippet createproc\n\t-- =============================================\n\t-- Author:\t\t${1:Author}\n\t-- Create date: ${2:Date}\n\t-- Description:\t${3:Description}\n\t-- =============================================\n\tCREATE PROCEDURE ${4:Procedure_Name}\n\t\t${5:/*Add the parameters for the stored procedure here*/}\n\tAS\n\tBEGIN\n\t\t-- SET NOCOUNT ON added to prevent extra result sets from interfering with SELECT statements.\n\t\tSET NOCOUNT ON;\n\t\t\n\t\t${6:/*Add the T-SQL statements to compute the return value here*/}\n\t\t\n\tEND\n\tGO\n# Create Scalar Function\nsnippet createfn\n\t-- =============================================\n\t-- Author:\t\t${1:Author}\n\t-- Create date: ${2:Date}\n\t-- Description:\t${3:Description}\n\t-- =============================================\n\tCREATE FUNCTION ${4:Scalar_Function_Name}\n\t\t-- Add the parameters for the function here\n\tRETURNS ${5:Function_Data_Type}\n\tAS\n\tBEGIN\n\t\tDECLARE @Result ${5:Function_Data_Type}\n\t\t\n\t\t${6:/*Add the T-SQL statements to compute the return value here*/}\n\t\t\n\tEND\n\tGO"; 2 | 3 | }); 4 | 5 | define("ace/snippets/sqlserver",["require","exports","module","ace/snippets/sqlserver.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./sqlserver.snippets"); 7 | exports.scope = "sqlserver"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/sqlserver"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/stylus.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/stylus"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/svg.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/svg"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/swift.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/swift"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/tcl.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/tcl.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# #!/usr/bin/env tclsh\nsnippet #!\n\t#!/usr/bin/env tclsh\n\t\n# Process\nsnippet pro\n\tproc ${1:function_name} {${2:args}} {\n\t\t${3:#body ...}\n\t}\n#xif\nsnippet xif\n\t${1:expr}? ${2:true} : ${3:false}\n# Conditional\nsnippet if\n\tif {${1}} {\n\t\t${2:# body...}\n\t}\n# Conditional if..else\nsnippet ife\n\tif {${1}} {\n\t\t${2:# body...}\n\t} else {\n\t\t${3:# else...}\n\t}\n# Conditional if..elsif..else\nsnippet ifee\n\tif {${1}} {\n\t\t${2:# body...}\n\t} elseif {${3}} {\n\t\t${4:# elsif...}\n\t} else {\n\t\t${5:# else...}\n\t}\n# If catch then\nsnippet ifc\n\tif { [catch {${1:#do something...}} ${2:err}] } {\n\t\t${3:# handle failure...}\n\t}\n# Catch\nsnippet catch\n\tcatch {${1}} ${2:err} ${3:options}\n# While Loop\nsnippet wh\n\twhile {${1}} {\n\t\t${2:# body...}\n\t}\n# For Loop\nsnippet for\n\tfor {set ${2:var} 0} {$$2 < ${1:count}} {${3:incr} $2} {\n\t\t${4:# body...}\n\t}\n# Foreach Loop\nsnippet fore\n\tforeach ${1:x} {${2:#list}} {\n\t\t${3:# body...}\n\t}\n# after ms script...\nsnippet af\n\tafter ${1:ms} ${2:#do something}\n# after cancel id\nsnippet afc\n\tafter cancel ${1:id or script}\n# after idle\nsnippet afi\n\tafter idle ${1:script}\n# after info id\nsnippet afin\n\tafter info ${1:id}\n# Expr\nsnippet exp\n\texpr {${1:#expression here}}\n# Switch\nsnippet sw\n\tswitch ${1:var} {\n\t\t${3:pattern 1} {\n\t\t\t${4:#do something}\n\t\t}\n\t\tdefault {\n\t\t\t${2:#do something}\n\t\t}\n\t}\n# Case\nsnippet ca\n\t${1:pattern} {\n\t\t${2:#do something}\n\t}${3}\n# Namespace eval\nsnippet ns\n\tnamespace eval ${1:path} {${2:#script...}}\n# Namespace current\nsnippet nsc\n\tnamespace current\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/tcl",["require","exports","module","ace/snippets/tcl.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./tcl.snippets"); 7 | exports.scope = "tcl"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/tcl"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/terraform.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/terraform"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/text.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/text"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/textile.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/textile.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# Jekyll post header\nsnippet header\n\t---\n\ttitle: ${1:title}\n\tlayout: post\n\tdate: ${2:date} ${3:hour:minute:second} -05:00\n\t---\n\n# Image\nsnippet img\n\t!${1:url}(${2:title}):${3:link}!\n\n# Table\nsnippet |\n\t|${1}|${2}\n\n# Link\nsnippet link\n\t\"${1:link text}\":${2:url}\n\n# Acronym\nsnippet (\n\t(${1:Expand acronym})${2}\n\n# Footnote\nsnippet fn\n\t[${1:ref number}] ${3}\n\n\tfn$1. ${2:footnote}\n\t\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/textile",["require","exports","module","ace/snippets/textile.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./textile.snippets"); 7 | exports.scope = "textile"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/textile"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/toml.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/toml"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/tsx.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/tsx"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/turtle.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/turtle"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/twig.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/twig"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/typescript.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/typescript"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/vbscript.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/vbscript"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/velocity.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/velocity.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# macro\nsnippet #macro\n\t#macro ( ${1:macroName} ${2:\\$var1, [\\$var2, ...]} )\n\t\t${3:## macro code}\n\t#end\n# foreach\nsnippet #foreach\n\t#foreach ( ${1:\\$item} in ${2:\\$collection} )\n\t\t${3:## foreach code}\n\t#end\n# if\nsnippet #if\n\t#if ( ${1:true} )\n\t\t${0}\n\t#end\n# if ... else\nsnippet #ife\n\t#if ( ${1:true} )\n\t\t${2}\n\t#else\n\t\t${0}\n\t#end\n#import\nsnippet #import\n\t#import ( \"${1:path/to/velocity/format}\" )\n# set\nsnippet #set\n\t#set ( $${1:var} = ${0} )\n"; 2 | 3 | }); 4 | 5 | define("ace/snippets/velocity",["require","exports","module","ace/snippets/velocity.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./velocity.snippets"); 7 | exports.scope = "velocity"; 8 | exports.includeScopes = ["html", "javascript", "css"]; 9 | 10 | }); 11 | (function() { 12 | window.require(["ace/snippets/velocity"], function(m) { 13 | if (typeof module == "object" && typeof exports == "object" && module) { 14 | module.exports = m; 15 | } 16 | }); 17 | })(); 18 | -------------------------------------------------------------------------------- /ace/snippets/verilog.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/verilog"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/vhdl.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/vhdl"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/visualforce.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/visualforce"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/wollok.js: -------------------------------------------------------------------------------- 1 | define("ace/snippets/wollok.snippets",["require","exports","module"], function(require, exports, module){module.exports = "##\n## Basic Java packages and import\nsnippet im\n\timport\nsnippet w.l\n\twollok.lang\nsnippet w.i\n\twollok.lib\n\n## Class and object\nsnippet cl\n\tclass ${1:`Filename(\"\", \"untitled\")`} ${2}\nsnippet obj\n\tobject ${1:`Filename(\"\", \"untitled\")`} ${2:inherits Parent}${3}\nsnippet te\n\ttest ${1:`Filename(\"\", \"untitled\")`}\n\n##\n## Enhancements\nsnippet inh\n\tinherits\n\n##\n## Comments\nsnippet /*\n\t/*\n\t * ${1}\n\t */\n\n##\n## Control Statements\nsnippet el\n\telse\nsnippet if\n\tif (${1}) ${2}\n\n##\n## Create a Method\nsnippet m\n\tmethod ${1:method}(${2}) ${5}\n\n## \n## Tests\nsnippet as\n\tassert.equals(${1:expected}, ${2:actual})\n\n##\n## Exceptions\nsnippet ca\n\tcatch ${1:e} : (${2:Exception} ) ${3}\nsnippet thr\n\tthrow\nsnippet try\n\ttry {\n\t\t${3}\n\t} catch ${1:e} : ${2:Exception} {\n\t}\n\n##\n## Javadocs\nsnippet /**\n\t/**\n\t * ${1}\n\t */\n\n##\n## Print Methods\nsnippet print\n\tconsole.println(\"${1:Message}\")\n\n##\n## Setter and Getter Methods\nsnippet set\n\tmethod set${1:}(${2:}) {\n\t\t$1 = $2\n\t}\nsnippet get\n\tmethod get${1:}() {\n\t\treturn ${1:};\n\t}\n\n##\n## Terminate Methods or Loops\nsnippet re\n\treturn"; 2 | 3 | }); 4 | 5 | define("ace/snippets/wollok",["require","exports","module","ace/snippets/wollok.snippets"], function(require, exports, module){"use strict"; 6 | exports.snippetText = require("./wollok.snippets"); 7 | exports.scope = "wollok"; 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/snippets/wollok"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /ace/snippets/xml.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/xml"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/yaml.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/yaml"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/snippets/zeek.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | (function() { 4 | window.require(["ace/snippets/zeek"], function(m) { 5 | if (typeof module == "object" && typeof exports == "object" && module) { 6 | module.exports = m; 7 | } 8 | }); 9 | })(); 10 | -------------------------------------------------------------------------------- /ace/theme-gruvbox.js: -------------------------------------------------------------------------------- 1 | define("ace/theme/gruvbox.css",["require","exports","module"], function(require, exports, module){module.exports = ".ace-gruvbox .ace_gutter-active-line {\n background-color: #3C3836;\n}\n\n.ace-gruvbox {\n color: #EBDAB4;\n background-color: #1D2021;\n}\n\n.ace-gruvbox .ace_invisible {\n color: #504945;\n}\n\n.ace-gruvbox .ace_marker-layer .ace_selection {\n background: rgba(179, 101, 57, 0.75)\n}\n\n.ace-gruvbox.ace_multiselect .ace_selection.ace_start {\n box-shadow: 0 0 3px 0px #002240;\n}\n\n.ace-gruvbox .ace_keyword {\n color: #8ec07c;\n}\n\n.ace-gruvbox .ace_comment {\n font-style: italic;\n color: #928375;\n}\n\n.ace-gruvbox .ace-statement {\n color: red;\n}\n\n.ace-gruvbox .ace_variable {\n color: #84A598;\n}\n\n.ace-gruvbox .ace_variable.ace_language {\n color: #D2879B;\n}\n\n.ace-gruvbox .ace_constant {\n color: #C2859A;\n}\n\n.ace-gruvbox .ace_constant.ace_language {\n color: #C2859A;\n}\n\n.ace-gruvbox .ace_constant.ace_numeric {\n color: #C2859A;\n}\n\n.ace-gruvbox .ace_string {\n color: #B8BA37;\n}\n\n.ace-gruvbox .ace_support {\n color: #F9BC41;\n}\n\n.ace-gruvbox .ace_support.ace_function {\n color: #F84B3C;\n}\n\n.ace-gruvbox .ace_storage {\n color: #8FBF7F;\n}\n\n.ace-gruvbox .ace_keyword.ace_operator {\n color: #EBDAB4;\n}\n\n.ace-gruvbox .ace_punctuation.ace_operator {\n color: yellow;\n}\n\n.ace-gruvbox .ace_marker-layer .ace_active-line {\n background: #3C3836;\n}\n\n.ace-gruvbox .ace_marker-layer .ace_selected-word {\n border-radius: 4px;\n border: 8px solid #3f475d;\n}\n\n.ace-gruvbox .ace_print-margin {\n width: 5px;\n background: #3C3836;\n}\n\n.ace-gruvbox .ace_indent-guide {\n background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNQUFD4z6Crq/sfAAuYAuYl+7lfAAAAAElFTkSuQmCC\") right repeat-y;\n}\n\n.ace-gruvbox .ace_indent-guide-active {\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;\n}\n"; 2 | 3 | }); 4 | 5 | define("ace/theme/gruvbox",["require","exports","module","ace/theme/gruvbox.css","ace/lib/dom"], function(require, exports, module){exports.isDark = true; 6 | exports.cssClass = "ace-gruvbox"; 7 | exports.cssText = require("./gruvbox.css"); 8 | var dom = require("../lib/dom"); 9 | dom.importCssString(exports.cssText, exports.cssClass, false); 10 | 11 | }); 12 | (function() { 13 | window.require(["ace/theme/gruvbox"], function(m) { 14 | if (typeof module == "object" && typeof exports == "object" && module) { 15 | module.exports = m; 16 | } 17 | }); 18 | })(); 19 | -------------------------------------------------------------------------------- /ace/theme-textmate.js: -------------------------------------------------------------------------------- 1 | define("ace/theme/textmate",["require","exports","module","ace/theme/textmate.css","ace/lib/dom"], function(require, exports, module){"use strict"; 2 | exports.isDark = false; 3 | exports.cssClass = "ace-tm"; 4 | exports.cssText = require("./textmate.css"); 5 | exports.$id = "ace/theme/textmate"; 6 | var dom = require("../lib/dom"); 7 | dom.importCssString(exports.cssText, exports.cssClass, false); 8 | 9 | }); 10 | (function() { 11 | window.require(["ace/theme/textmate"], function(m) { 12 | if (typeof module == "object" && typeof exports == "object" && module) { 13 | module.exports = m; 14 | } 15 | }); 16 | })(); 17 | -------------------------------------------------------------------------------- /build_ace.py: -------------------------------------------------------------------------------- 1 | import os 2 | import json 3 | import src.project_tools as utils 4 | 5 | utils.setCwdPath(os.getcwd()) 6 | utils.setRootPath(os.path.dirname(os.path.realpath(__file__))) 7 | def compile_ace(): 8 | utils.compile_ace() 9 | print("Successfully compiled sd-webui-prompt-highlight.") 10 | 11 | compile_ace() -------------------------------------------------------------------------------- /install.py: -------------------------------------------------------------------------------- 1 | import sys 2 | import os 3 | import src.project_tools as utils 4 | 5 | utils.setCwdPath(os.getcwd()) 6 | utils.setRootPath(os.path.dirname(os.path.realpath(__file__))) 7 | 8 | def init_dev(): 9 | print("install dev!") 10 | utils.install() 11 | utils.compile_ace() 12 | 13 | if "--dev" in sys.argv: 14 | init_dev() 15 | print("Successfully installed sd-webui-prompt-highlight for Development.") 16 | else: 17 | print("Installing requirements for sd-webui-prompt-highlight") 18 | print("load sd-webui-prompt-highlight for WebUI. for Development try 'python install.py --dev'") 19 | utils.install_requirements() 20 | utils.ignortTranslateTextbox() 21 | -------------------------------------------------------------------------------- /javascript/module_template.js: -------------------------------------------------------------------------------- 1 | (function(){ 2 | 3 | function module_init() { 4 | //insert code here 5 | } 6 | let module_loadded = false; 7 | document.addEventListener("DOMContentLoaded", () => { 8 | if (module_loadded) return; 9 | module_loadded = true; 10 | module_init(); 11 | }); 12 | document.addEventListener("load", () => { 13 | if (module_loadded) return; 14 | module_loadded = true; 15 | module_init(); 16 | }); 17 | })(); -------------------------------------------------------------------------------- /readme/fig1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a2569875/sd-webui-prompt-highlight/1fbc0b38afd53f12422552894863100fa27e1187/readme/fig1.png -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | GitPython 2 | js2py -------------------------------------------------------------------------------- /scripts/my_init.py: -------------------------------------------------------------------------------- 1 | import os 2 | import json 3 | import sys 4 | import re 5 | from modules import cmd_args 6 | from modules.paths_internal import extensions_dir 7 | 8 | args, _ = cmd_args.parser.parse_known_args() 9 | 10 | def list_extensions(settings_file): 11 | settings = {} 12 | 13 | try: 14 | if os.path.isfile(settings_file): 15 | with open(settings_file, "r", encoding="utf8") as file: 16 | settings = json.load(file) 17 | except Exception as e: 18 | print(e, file=sys.stderr) 19 | 20 | disabled_extensions = set(settings.get('disabled_extensions', [])) 21 | disable_all_extensions = settings.get('disable_all_extensions', 'none') 22 | 23 | if disable_all_extensions != 'none': 24 | return [] 25 | 26 | return [x for x in os.listdir(extensions_dir) if x not in disabled_extensions] 27 | 28 | def get_args(key, value): 29 | if hasattr(args, key): 30 | result = getattr(args, key) 31 | return result if result is not None else value 32 | return value 33 | 34 | def check_conflict(): 35 | for dirname_extension in list_extensions(settings_file=get_args("ui_settings_file", "")): 36 | extension_root = os.path.join(extensions_dir, dirname_extension) 37 | check_target = os.path.join(extension_root, "javascript", "bilingual_localization.js") 38 | if os.path.isfile(check_target): 39 | if ignortTranslateTextbox(check_target): 40 | break 41 | 42 | JS_TRANSLATE_WORD = "ace_line_group" 43 | TEXTBOX_TOKENS = ["ace_line", "ace_prompttoken", JS_TRANSLATE_WORD] 44 | def ignortTranslateTextbox(file_path): 45 | with open(file_path, "r", encoding='utf8') as f: 46 | content = f.read() 47 | 48 | if re.search(JS_TRANSLATE_WORD, content): 49 | return 50 | 51 | pattern = r"([^\n\r\{\}\(\)\[\]\w]+)\s*(const|let|var)\s*ignore_selector\s*=\s*\[[^'\"]+(['\"])" 52 | match = re.search(pattern, content) 53 | 54 | if match: 55 | indented = match.group(1) 56 | var_state = match.group(2) 57 | string_mark = match.group(3) 58 | OR_OP = "," 59 | for i in range(len(TEXTBOX_TOKENS)): 60 | TEXTBOX_TOKENS[i] = f"{string_mark}{TEXTBOX_TOKENS[i]}{string_mark}" 61 | new_code = OR_OP.join(TEXTBOX_TOKENS) + OR_OP 62 | modified_content = content[:match.end()-1] + "\n" + indented + new_code + "\n" + indented + content[match.end()-1:] 63 | 64 | with open(file_path, "w", encoding='utf8') as f: 65 | f.write(modified_content) 66 | 67 | print("Textbox setup successfully") 68 | else: 69 | return False 70 | return True -------------------------------------------------------------------------------- /scripts/myutils.py: -------------------------------------------------------------------------------- 1 | import os 2 | import json 3 | import re 4 | import math 5 | script_path = os.path.dirname(os.path.realpath(__file__)) 6 | project_path = os.sep.join(__file__.split(os.sep)[0:-2]) 7 | color_list = None 8 | def getColor(): 9 | color_json_path = os.path.join(script_path, "color.json") 10 | with open(os.path.realpath(color_json_path), 'r', encoding='utf8') as f: 11 | color_json = json.load(f) 12 | return color_json 13 | 14 | def _get_effective_prompt(prompts: list[str], prompt: str) -> str: 15 | return prompts[0] if prompts else prompt 16 | 17 | def get_prompts(p): 18 | original_prompt = _get_effective_prompt(p.all_prompts, p.prompt) 19 | original_negative_prompt = _get_effective_prompt( 20 | p.all_negative_prompts, 21 | p.negative_prompt, 22 | ) 23 | return original_prompt, original_negative_prompt 24 | 25 | re_color_def = re.compile(r"\(\s*([\+\-]?[\d\.]+)\s*,\s*([\+\-]?[\d\.]+)\s*,\s*([\+\-]?[\d\.]+)\s*\)") 26 | re_color_def_ful = re.compile(r"(rgb\(\s*([\+\-]?[\d\.]+)\s*,\s*([\+\-]?[\d\.]+)\s*,\s*([\+\-]?[\d\.]+)\s*\))") 27 | 28 | def load_json_number(input) -> float: 29 | try: 30 | return float(str(input)) 31 | except Exception: 32 | return 0 33 | 34 | def parse_color(color): 35 | matcher = re.search(re_color_def, color) 36 | return (load_json_number(matcher.group(1)),load_json_number(matcher.group(2)),load_json_number(matcher.group(3))) 37 | 38 | def color_diff(color1, color2): 39 | r_diff = color1[0]-color2[0] 40 | g_diff = color1[1]-color2[1] 41 | b_diff = color1[2]-color2[2] 42 | return math.sqrt(r_diff*r_diff + g_diff*g_diff + b_diff*b_diff) 43 | 44 | def getCloseColor(input_color): 45 | global color_list 46 | if color_list is None: 47 | color_list = getColor() 48 | test_color = parse_color(input_color) 49 | min_color = None 50 | min_diff = color_diff(parse_color("rgb(255,255,255)"),parse_color("rgb(-255,-255,-255)")) 51 | for color in color_list.keys(): 52 | current_color = parse_color(color_list[color]) 53 | calced_diff = color_diff(test_color, current_color) 54 | if calced_diff < min_diff: 55 | min_diff = calced_diff 56 | min_color = (color, current_color) 57 | return min_color[0], min_color[1], min_diff 58 | 59 | def replaceColorString(input_string): 60 | def replaceColor(match_pt : re.Match): 61 | color_str = match_pt.group(0) 62 | close_color, close_val, loss = getCloseColor(color_str) 63 | return close_color 64 | return re.sub(re_color_def_ful, replaceColor, input_string) 65 | 66 | def replaceColorPrompt(prompts): 67 | for i in range(len(prompts)): 68 | prompts[i] = replaceColorString(prompts[i]) 69 | return prompts 70 | 71 | -------------------------------------------------------------------------------- /scripts/nodepyjs.py: -------------------------------------------------------------------------------- 1 | import os 2 | import js2py 3 | 4 | script_path = os.path.dirname(os.path.realpath(__file__)) 5 | project_path = os.sep.join(__file__.split(os.sep)[0:-2]) 6 | nodejs_core = "" 7 | def getNodeJSCore(): 8 | global nodejs_core 9 | if nodejs_core.strip() == "": 10 | with open(os.path.join(script_path, "node.py.js"), encoding='utf8') as f: 11 | nodejs_core = f.read() 12 | return nodejs_core 13 | 14 | def require(jsfile, module_name): 15 | js_code = "" 16 | with open(jsfile, encoding='utf8') as f: 17 | js_code = f.read() 18 | required = js2py.eval_js(f""" 19 | function()\u007B 20 | {getNodeJSCore()} 21 | {js_code} 22 | return require("{module_name}"); 23 | \u007D 24 | """) 25 | if required is None: 26 | raise \ 27 | ModuleNotFoundError(f"No module named '{module_name}' in '{jsfile}'") 28 | result = None 29 | try: 30 | result = required() 31 | except Exception: 32 | return required 33 | if result is None: 34 | raise \ 35 | ModuleNotFoundError(f"No module named '{module_name}' in '{jsfile}'") 36 | return result -------------------------------------------------------------------------------- /scripts/prompt_highlight.py: -------------------------------------------------------------------------------- 1 | import os 2 | from scripts import themelist 3 | from scripts import my_init 4 | from scripts import myutils as scripts_utils 5 | import gradio as gr 6 | from modules import script_callbacks, shared 7 | import modules.scripts as scripts 8 | from modules.processing import StableDiffusionProcessing 9 | import json 10 | 11 | script_path = os.path.dirname(os.path.realpath(__file__)) 12 | project_path = os.sep.join(__file__.split(os.sep)[0:-2]) 13 | 14 | my_init.check_conflict() 15 | 16 | def on_ui_settings(): 17 | PHL_SECTION = ("sd-prompt-highlight", "Prompt Highlight") 18 | # enable in settings 19 | shared.opts.add_option("prompt_highlight_enabled", shared.OptionInfo(True, "Enable Prompt Highlight", section=PHL_SECTION)) 20 | shared.opts.add_option("prompt_highlight_theme", shared.OptionInfo("None", "Textbox Theme", gr.Dropdown, lambda: {"choices": ["None"] + themelist.getThemeDisplayList()}, section=PHL_SECTION)) 21 | shared.opts.add_option("prompt_highlight_font_size", shared.OptionInfo(12, "Prompt font size", section=PHL_SECTION)) 22 | shared.opts.add_option("prompt_highlight_display_invisible_char", shared.OptionInfo(False, "Display invisible char", section=PHL_SECTION)) 23 | shared.opts.add_option("prompt_highlight_weight_coloring", shared.OptionInfo(True, "Prompt weight coloring", section=PHL_SECTION)) 24 | shared.opts.add_option("prompt_highlight_theme_id", shared.OptionInfo(json.dumps(themelist.getThemeSelectMap()), "Theme id", section=PHL_SECTION, component_args={"visible": False})) # 25 | 26 | script_callbacks.on_ui_settings(on_ui_settings) 27 | 28 | class Script(scripts.Script): 29 | def title(self): 30 | return "" 31 | 32 | def show(self, is_img2img): 33 | return scripts.AlwaysVisible 34 | 35 | def ui(self, is_img2img): 36 | pass 37 | 38 | def process(self, p: StableDiffusionProcessing): 39 | if p.prompt: 40 | p.prompt = scripts_utils.replaceColorPrompt([p.prompt])[0] 41 | if p.negative_prompt: 42 | p.negative_prompt = scripts_utils.replaceColorPrompt([p.negative_prompt])[0] 43 | if p.all_prompts: 44 | p.all_prompts = scripts_utils.replaceColorPrompt(p.all_prompts) 45 | if p.all_negative_prompts: 46 | p.all_negative_prompts = scripts_utils.replaceColorPrompt(p.all_negative_prompts) 47 | 48 | -------------------------------------------------------------------------------- /scripts/themelist.py: -------------------------------------------------------------------------------- 1 | import os 2 | from scripts.nodepyjs import require 3 | 4 | themelist = {'themes': []} 5 | themelistpy = [] 6 | loadded = False 7 | 8 | script_path = os.path.dirname(os.path.realpath(__file__)) 9 | project_path = os.sep.join(__file__.split(os.sep)[0:-2]) 10 | 11 | def loadThemeList(): 12 | global themelist 13 | global loadded 14 | global themelistpy 15 | if not loadded: 16 | loadded = True 17 | themelist = require(os.path.join(project_path, "ace", "ext-themelist.js"), "ace/ext/themelist") 18 | themelistpy = [] 19 | for theme in themelist["themes"]: 20 | themelistpy.append(theme) 21 | return themelist 22 | 23 | def getThemeKeyList(key): 24 | loadThemeList() 25 | result = [] 26 | for theme in themelistpy: 27 | result.append(theme[key]) 28 | return result 29 | 30 | def ThemeDisplay(theme): 31 | CAPTION = ("caption",) 32 | isDark = "Dark" if theme["isDark"] else "Bright" 33 | return f"{theme[CAPTION[0]]} ({isDark})" 34 | 35 | def getThemeDisplayList(): 36 | loadThemeList() 37 | result = [] 38 | for theme in themelistpy: 39 | result.append(ThemeDisplay(theme)) 40 | return result 41 | 42 | def getThemeSelectMap(): 43 | loadThemeList() 44 | result = {} 45 | for theme in themelistpy: 46 | result[ThemeDisplay(theme)] = theme 47 | return result 48 | -------------------------------------------------------------------------------- /src/Makefile: -------------------------------------------------------------------------------- 1 | # 指定編譯器和編譯選項 2 | CXX := g++ 3 | CXXFLAGS := -std=c++11 -Wall 4 | 5 | # 定義目標和依賴關係 6 | TARGET := modify_code 7 | SRCS := modify_code.cpp 8 | 9 | # 判斷操作系統,並選擇適當的編譯選項 10 | ifeq ($(OS),Windows_NT) 11 | RM := del /Q 12 | TARGET_EXT := .exe 13 | else 14 | RM := rm -f 15 | TARGET_EXT := 16 | endif 17 | 18 | # 定義編譯規則 19 | $(TARGET)$(TARGET_EXT): $(SRCS) 20 | $(CXX) $(CXXFLAGS) -o $@ $< 21 | 22 | # 定義clean目標,用於刪除生成的文件 23 | .PHONY: clean 24 | clean: 25 | $(RM) $(TARGET)$(TARGET_EXT) 26 | -------------------------------------------------------------------------------- /src/__init__.js: -------------------------------------------------------------------------------- 1 | //反正我也不知道要寫什麼,就這樣吧! 2 | //緒山真尋! -------------------------------------------------------------------------------- /src/__init__.py: -------------------------------------------------------------------------------- 1 | #目錄中必須含有 __init__.py 檔案,才會被 Pyhon 當成套件;這樣可以避免一些以常用名稱命名(例如 string)的目錄,無意中隱藏了較晚出現在模組搜尋路徑中的有效模組。 2 | #在最簡單的情況,__init__.py 可以只是一個空白檔案 3 | #================================================== 4 | #反正我也不知道要寫什麼,就這樣吧! 5 | #緒山真尋! -------------------------------------------------------------------------------- /src/inside_pythonic.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var oop = require("../lib/oop"); 4 | var BaseFoldMode = require("./folding/fold_mode").FoldMode; 5 | 6 | var FoldMode = exports.FoldMode = function(markers) { 7 | this.foldingStartMarker = new RegExp("(\\\\?[\\[{])(?:\\s*)$|\\\\?(" + markers + ")(?:\\s*)(?:#.*)?$"); 8 | }; 9 | oop.inherits(FoldMode, BaseFoldMode); 10 | 11 | (function() { 12 | 13 | this.getFoldWidgetRange = function(session, foldStyle, row) { 14 | var line = session.getLine(row); 15 | var match = line.match(this.foldingStartMarker); 16 | if (match) { 17 | if (match[1]) 18 | return this.openingBracketBlock(session, match[1], row, match.index); 19 | if (match[2]) 20 | return this.indentationBlock(session, row, match.index + match[2].length); 21 | return this.indentationBlock(session, row); 22 | } 23 | }; 24 | 25 | }).call(FoldMode.prototype); 26 | -------------------------------------------------------------------------------- /src/modify_code.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | int main() { 6 | // 設定要打開的文件路徑 7 | const std::string file_path = "../../javascript/localization.js"; 8 | 9 | // 讀取文件內容 10 | std::ifstream file(file_path); 11 | std::string content((std::istreambuf_iterator(file)), std::istreambuf_iterator()); 12 | 13 | // 在文件內容中查找目標字符串 14 | std::regex pattern("if\\(ignore_ids_for_localization\\[pnode\\.id\\] == parentType\\) return false;"); 15 | std::smatch match; 16 | if (std::regex_search(content, match, pattern)) { 17 | // 如果找到目標字符串,則在其後插入新的代碼行 18 | std::string new_code = "if(pnode.classList.contains(\"ace_line\")||pnode.classList.contains(\"ace_line_group\"))return false;\n"; 19 | std::string modified_content = content.substr(0, match.position() + match.length()) + "\n" + new_code + content.substr(match.position() + match.length()); 20 | 21 | // 寫入修改後的內容到文件 22 | std::ofstream outfile(file_path); 23 | outfile << modified_content; 24 | outfile.close(); 25 | 26 | std::cout << "代碼已成功修改並保存到文件中!" << std::endl; 27 | } 28 | else { 29 | std::cout << "未找到目標字符串。" << std::endl; 30 | } 31 | 32 | return 0; 33 | } 34 | -------------------------------------------------------------------------------- /src/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "files":[ 3 | { 4 | "from":"sdprompt.js", 5 | "to":"mode" 6 | }, 7 | { 8 | "from":"sdprompt_highlight_rules.js", 9 | "to":"mode" 10 | }, 11 | { 12 | "from":"inside_python.js", 13 | "to":"mode" 14 | }, 15 | { 16 | "from":"inside_python_highlight_rules.js", 17 | "to":"mode" 18 | }, 19 | { 20 | "from":"inside_pythonic.js", 21 | "to":"mode" 22 | } 23 | ], 24 | "syntax_rules":[ 25 | {"name": "SDPrompt", "extension":"extension1|extension2"}, 26 | {"name": "insidePython", "extension":"isdpy"} 27 | ] 28 | } -------------------------------------------------------------------------------- /src/sdprompt.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var oop = require("../lib/oop"); 4 | var TextMode = require("./text").Mode; 5 | var PythonMode = require("./inside_python").Mode; 6 | var HighlightRules = require("./sdprompt_highlight_rules").sdpromptHighlightRules; 7 | // TODO: pick appropriate fold mode 8 | var FoldMode = require("./folding/cstyle").FoldMode; 9 | 10 | var Mode = function() { 11 | this.HighlightRules = HighlightRules; 12 | this.foldingRules = new FoldMode(); 13 | this.createModeDelegates({ 14 | "python-": PythonMode 15 | }); 16 | }; 17 | oop.inherits(Mode, TextMode); 18 | 19 | (function() { 20 | // this.lineCommentStart = "TODO"; 21 | // this.blockComment = {start: "TODO", end: "TODO"}; 22 | // Extra logic goes here. 23 | this.$id = "ace/mode/sdprompt"; 24 | }).call(Mode.prototype); 25 | 26 | exports.Mode = Mode; --------------------------------------------------------------------------------