This Nova Extension adds Bootstrap 5 auto-completion
You can find it for Nova here: https://extensions.panic.com/extensions/de.mountbatt/de.mountbatt.bootstrap/
- Copy the text from https://getbootstrap.com/docs/5.3/dist/css/bootstrap.css or any other version
- Isolate class names by replacing
\s\.([-a-z0-9]+)
with\n©\1©\n
thus placing each class name on a line of its own with unique delimiters - Removing all content except the isolated classes by replacing
(?<!©)(?:(?!©).)*(?!©)
with nothing - Removing the delimiters by replacing
©(.+)©
with\1
- Paste all lines in https://dedupelist.com/ and check "Sort result" to remove duplicates and sort the classnames in alphabetical order
- Copy back to your editor and remove some junk at the start of the file (Numbers)
- Use
^(.+)$
and replace it with"\1",
- For minification you can replace the linebreak, if you wish.
- Copy paste it into
/Scripts/main.js
betweenlet tags = [ ... ]
Thanks to https://github.com/zkarj735 for your inspiration!