<?php
$html = <<<"HTML"
<table>
<tr>
<td>I AM THE TABLE.</td>
</tr>
</table>
HTML;
print "$html\n";
exit();
$html = <<<"HTML"
<table>
<tr>
<td>I AM THE TABLE.</td>
</tr>
</table>
HTML;
print "$html\n";
exit();
If I put my cursor on the HTMLtags in the heredoc if I hit the percent key(%) I can toggle between the opening and closing tags for table, tr, and td. Cool!
So, if I create a Perl file hello.pl that contains the following text:
#!/usr/bin/perl
use strict;
use warnings;
print "Hello world!\n";
my $html = <<"HTML";
<table>
<tr>
<td>I AM THE TABLE.</td>
</tr>
</table>
HTML
exit();
use strict;
use warnings;
print "Hello world!\n";
my $html = <<"HTML";
<table>
<tr>
<td>I AM THE TABLE.</td>
</tr>
</table>
HTML
exit();
If I try to toggle the HTML tags similar to what I did in the PHP file, it does NOT work. How do I get the heredo toggling to work with Perl files?
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/e255684a-b7d5-419d-a9fe-576f8d4cf94en%40googlegroups.com.
No comments:
Post a Comment