Hi, This little snippet seems to work fine.
I just wonder if the "size" of the indent / tabulator could be changed. When pasting from some editors, the tab is a little bit smaller, and when editoing or creating new "tabs" with this plugin, they are "default" - unneccecery length / type of tab.
Is it possible to change this in the preg/replace or whatever function?
I manipulated the hook and added an extra function to allow tabs in pre-tags in coment texteditor. This is for visitors to paste snippets without complex highlighs plugin etc etc.
This plugin could be very useful for common needs, if a option where added or similar "goal"