Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Compressor for HTML generated by kate
#!/usr/bin/perl -pw
use strict;
s{#([[:xdigit:]])\1([[:xdigit:]])\2([[:xdigit:]])\3}{#$1$2$3}g;
s{<(b|i|em|strong)></\1>}{}gi;
s{</(b|i|em|strong)><\1>}{}gi;
@shoorick

This comment has been minimized.

Copy link
Owner Author

commented May 11, 2010

Улучшает генерируемый редактором kate HTML-код:

  • укорачивает, если возможно, значения цветов;
  • убирает ненужные последовательности <tag></tag> и </tag><tag>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.