Skip to content

Instantly share code, notes, and snippets.

@chssweb
Last active July 29, 2016 15:14
Show Gist options
  • Save chssweb/f29a48e5d958621ad3b2 to your computer and use it in GitHub Desktop.
Save chssweb/f29a48e5d958621ad3b2 to your computer and use it in GitHub Desktop.
Notepad++ run css-beatify node script on css in editor

#Notepad++

Open Notepad++, install the npp-exec plugin, then save this code below in the execute panel. After that you can run this on css files in the editor

// enable the $(OUTPUT) variable
NPE_CONSOLE v+
// your command here... for example, let it be "cmd /?"
cmd \c css-beautify "$(FULL_CURRENT_PATH)" 
// open new editor pane
NPP_SENDMSG WM_COMMAND IDM_FILE_NEW
// set the text in the new editor pane
SEL_SETTEXT $(OUTPUT)
// finally, disable $(OUTPUT) variable
NPE_CONSOLE v-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment