LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Txt Edr.- HTML- Custom Saved Code "Snippets" (https://www.linuxquestions.org/questions/linux-software-2/txt-edr-html-custom-saved-code-snippets-536729/)

WhatsOnYourBrain 03-12-2007 01:06 AM

Txt Edr.- HTML- Custom Saved Code "Snippets"
 
hi there. i recently discovered a win-based text editor Programmer's Notepad which i've been using for certain "touch-up" jobs in which i need to modify a lot of HTML elements.

i found it very easy to create my own Custom code-snippets, so i seek a Linux FC5 app which might perform similarly.

my snippets are saved, and reusable via an XML file. note, i created these from scratch, realizing that the "horizontal bar" indicates the "cursor position", or "insertion point". if i highlight a line, and 'double-click' my snippet (see below) named "span-class" for example, the result has span elements around the line of text.
the code looks like this:
Code:

<clips name="My Custom Clips">
<clip name="CLASS"><![CDATA[ class="|"]]></clip>
<clip name="STYLE"><![CDATA[ style="|"]]></clip>
<clip name="span-class"><![CDATA[<span class="">|</span>]]></clip>
<clip name="li-class-eq"><![CDATA[<li class="">|</li>]]></clip>
<clip name="dt-class"><![CDATA[<dt class="">|</dt>]]></clip>
<clip name="dd-class"><![CDATA[<dd class="">|</dd>]]></clip>

i figured it out just by looking at the "default" snippets. it was simple.

how might i get something like that going in Kate? or gphpedit? or any of the hundreds of other Text Editors-- does anyone use something which might be so "easy to customize" as the XML shown above?
[SNIP (commentary)]

thanks!

WhatsOnYourBrain 04-01-2007 03:36 PM

are there truly no text editors available for Fedora Core 5 which offer a "custom snippets" feature similar to that i described above?

the closest thing i can think of is the bluefish custom menu, but the key characteristic i'm looking for, which i liked in the example so eloquently stated above is the ability to edit, for example... a simple XML file in VIM, or nedit if i wanted to.


All times are GMT -5. The time now is 02:01 AM.