sponsor Vim development Vim logo Vim Book Ad

Chars2HTML : Converting special characters to HTML

 script karma  Rating 28/10, Downloaded by 953  Comments, bugs, improvements  Vim wiki

created by
Jens Juul Christensen
 
script type
utility
 
description
This plugin will convert between characters(ISO-8859-1) and their HTML \\\"&xxxxxx;\\\" entity in the current file. Its a rewrite of html_da vim vimscript #1163, this plugin can be used on all filetypes and contains more special characters and their HTML encoding. Nice plugin if you often copy text to use as HTML, with special european characters(ISO-8859-1), embedded in various programming languages.
 
install details
Put this file in your plugin directory ~/.vim/plugin.
Put a mapping in your .vimrc to call the commands ConvertChars2Html and ConvertHtml2Chars like this:
map ,ch :ConvertChars2Html<CR>
map ,hc :ConvertHtml2Chars<CR>


 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
Chars2HTML.vim 1.1 2005-11-03 6.0 Jens Juul Christensen Fixed a misspelling and added the option to also convert html back to chars again. Thanks to  François Wendling
Chars2HTML.vim 1.0 2005-10-09 6.0 Jens Juul Christensen Initial upload
ip used for rating: 18.221.129.19

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github