I am working with HTML in Emacs and I am looking for ways to make basics operations as:
-
convert list of string to HTML-list
one two threeto
<ul> <li>one</li> <li>two</li> <li>three</li> </ul> -
add class to list of elements
<a></a> <a></a> <a></a>to
<a class="one"></a> <a class="one"></a> <a class="one"></a>
Is there any extensions which can helps me?
I would do this with a macro:
C-x (<li>, move to the end</li>, and move to the next lineC-x e e e e e…This can easily be generalized to add classes to your
<a>tags, and many other things.