Quote:
Originally Posted by bmix
In it I would like to offer the possibility to apply a style upon the currently opened editor document (would need a way, to find out, which file is being frontmost) or selected or all xhtml files.
|
Unfortunately, it's not possible to programmatically determine the the .html file currently opened in the Code View window; you'll either have to enumerate all .html files or use a Tkinter file selection dialog. (For an example, see
DiapDealer's Smarten Punctuation plugin.)
BTW, for simple html manipulation
BeautifulSoup might do the trick.