Registered Member
|
Hello,
I use the software "kate" and I want to insert html tags in a document. I can't find tools to do that. For instance, I want to replace the expression "this is bold" by "<strong >this is bold</strong >". Does that exist? I've found the tool "snippets" in the external modules. But I can't use it. I've create a snippet called "strong" with this content:
and this javascript function
But it doesn't work. To do that, I've had a look in kate's help file (in particular "scripting API") and I imitated a snippet which is supplied and which is designed like that:
fonction javascript
and it works What did I do wrong? What should I modify ? Thanks in advance for your help. |
Registered Member
|
have you tried Ctrl+R = 'search and replace' as it sounds like you're editing an old document?
-or- create snippet with your code, save and use Ctrl+Spacebar to bring up the snippet list. You can narrow down your list, if you start typing "<stro" You can dock the snippets window on side bar by going Settings> Configure Kate> Plugins> (select) Snippets tool view. Mine was first docked on right, but you can right-click and choose to dock on left, making the viewing of and inserting your snippets easier. Reed. |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell