ActiveState Community

morekomodo, how to change an entity?

Posted by jose.g on 2009-09-08 09:33

Hi to all,
first post here.

Just a question...
does it possible (and how to do if yes) change an entity in morekomodo?

Morekomodo is converting the apostrophe into *& apos;* (I put a space so it's not converted into *'* in the post).
I should prefere to have it converted into *& rsquo;*, does it possible?

I apologize since now if I did a stupid question :-)
I'm a newbie.

Many thx in advance.

Ciao!

.....
jo

dafi | Tue, 2009-09-08 10:51

Try to create a macro containing the code

gHtmlEntities["’"] = 39;
gHtmlCodes[39] = "’";
gHtmlEntities["’"] = 39;
gHtmlCodes[39] = "’";

Be sure to set the macro trigger to "startup"

Restart Komodo and should work fine (at least on my Ubuntu box it works)

MoreKomodo sets rsquo to the right single quotation mark as specified by W3C http://www.w3.org/TR/html4/sgml/entities.html

thanks to use MoreKomodo
--
dafi
Enhance KomodoEdit with MoreKomodo

jose.g | Tue, 2009-09-08 11:00

Maaaaany thx,
I'll give a try... hope I'll be able to do it :-)

Have a nice day/evening/night.

.....
jo