hi allan.
Am 22.03.2006 um 16:19 schrieb Allan Odgaard:
On 22/3/2006, at 15:50, Niko Dittmann wrote:
$tidy_html = `echo '#{$html}' | ${TM_TIDY:-tidy} -f /dev/null -i - ascii -asxhtml -wrap 0` puts $tidy_html
In that case, you could also call iconv -f iso-8859-1 -t utf-8
certainly right. thank you. this is a shell-command, right? the ruby- method is "iconv", too, i suppose... couldn't figure out how to get this to work... is this used in any other command?
But you could also do something like:
puts "<meta http-equiv='Refresh' content='0;URL=#{url}'>" That should then also save you the trouble of rewriting the relative URLs.
hm.... but as i include 2 selfhtml-pages (elemtens and attributes) into one page of output i thought it would be a good idea to filter the pages before concating them and just show the documentation for what i lookup... with your method it isn't even possible to include 2 pages into one, is it?
onother refinement: i recorded a macro that does a backward-search for "<", moves the caret 2 bytes to the right and then calls the command. this way you don't have to have the cursor on the html- element. enjoy!
You can also read TM_CURRENT_LINE and TM_LINE_INDEX for the carets position and search back for the tag in code.
hmm... i couldn't figure out how to do this. this would be far more elegant. is there another command where this is used?
sometimes it's frustrating being a nube...
regards, niko.