All posts tagged url=word_count_for_html_documents

Word count for HTML documents

No, this blog is not turning into some rabid-fanboy-with-a-URL site for Komodo Edit, but I’d like to point to one of the more useful features of Komodo, namely it having the full DOM available to the macros. Which means that doing stuff like this macro to do word count on HTML/XML documents is changed from being a horrible regexp hack, to being totally manageable, and only nine lines of code.