How to modify this script?
Kurt Hansen
kurt at ugyldig.invalid
Wed Jan 9 04:07:59 EST 2013
Den 08/01/13 16.31, chaouche yacine skrev:
> Well tell me how do you use this script in gedit, are you using it as a
> plugin ?
"Snippets" is a plugin, yes. It's included in the .app for Mac (v.
2.30.2), but not activated af default.
Open "Tools" in the menu line and click "Manage snippets...". Here you
can organize, add and edit snippets of texts. The feature olså has the
ability to work with Python code inside the snippet content.
I am re-building a 15 years old homepage. The HTML code is handmade over
the years and very varying, buggy etc., så I would like to renew the
HTML for the table structure in an easy way.
Example: On this page: http://www.danacord.dk/frmsets/records/732-r.html
I mark the content of the CD, copy it to the clipboard and paste it into
the editing area in Gedit. cmd-a marks it all again and then I "run" the
snippet upon the text, either using my self-defined hotkey or by pushing
ctrl+space and select my snippet from a list.
The copied text is inserted as clean text without any HTML. The
Python-snippet we are discussing recognizes tabs to separate the columns
and adds the apprpriate HTML-code to it.
--
Regards
Kurt Hansen
More information about the Python-list
mailing list