Lite-XL plugin to sort selected CSS properties alphabetically or using the concentric model by Brandon Rhodes (https://rhodesmill.org/brandon/2011/concentric-css/).
This plugin is based on vscode-sort-selection-concentrically.
Navigate to the plugins folder (usually ~/.config/lite-xl/plugins) and run the following command:
git clone https://github.com/felixsanz/lite-xl-sortcss sortcss
Alternatively the init.lua
file can be renamed sortcss.lua
and dropped in the plugins folder.
- Select CSS code (must have one property per line).
- Press
control+alt+a
to sort alphabetically orcontrol+alt+c
to sort concentrically. Alternatively you can also right-click and select the appropriate option.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.