Following are two Perl snippets that cause syntax highlighting to get wacky.
This first one causes everything that comes after for the remainder of the file to be colored as a string:
message(<<EOF) if $TT_PREFIX; EOF
And with this one, as well as the one above, anything after the first here-doc delimiter is colored as a string:
$sql .= <<SQL if $type eq 'com'; SQL
Regards,
Michael Irwin
You can enclose the EOF and SQL after the << with ' or " to fix it.
Just keep in mind that that will cause the text in the here-doc to be interpreted as that particular string type with regards to interpolation.
Regards Kim Ahlström
On 14 okt 2005, at 15.54, Michael Irwin wrote:
Following are two Perl snippets that cause syntax highlighting to get wacky.
This first one causes everything that comes after for the remainder of the file to be colored as a string:
message(<<EOF) if $TT_PREFIX; EOF
And with this one, as well as the one above, anything after the first here-doc delimiter is colored as a string:
$sql .= <<SQL if $type eq 'com'; SQL
Regards,
Michael Irwin
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Oct 14, 2005, at 17:43, Kim Ahlström wrote:
You can enclose the EOF and SQL after the << with ' or " to fix it.
Just keep in mind that that will cause the text in the here-doc to be interpreted as that particular string type with regards to interpolation.
I don't understand the workaround, see the attached screenshot, where "and exit;" is colored as string. What do you mean?
-- fxn
Yeah, that's still a problem even if you put ' or ". But at least you won't have the entire file after the last USAGE colored as a string.
Regards Kim Ahlström
On 14 okt 2005, at 22.35, Xavier Noria wrote:
On Oct 14, 2005, at 17:43, Kim Ahlström wrote:
You can enclose the EOF and SQL after the << with ' or " to fix it.
Just keep in mind that that will cause the text in the here-doc to be interpreted as that particular string type with regards to interpolation.
I don't understand the workaround, see the attached screenshot, where "and exit;" is colored as string. What do you mean?
-- fxn
<tm_perl_heredoc.png>
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 14/10/2005, at 22.35, Xavier Noria wrote:
On Oct 14, 2005, at 17:43, Kim Ahlström wrote:
You can enclose the EOF and SQL after the << with ' or " to fix it.
Just keep in mind that that will cause the text in the here-doc to be interpreted as that particular string type with regards to interpolation.
I don't understand the workaround, see the attached screenshot, where "and exit;" is colored as string. What do you mean?
I committed a patch to the Perl syntax which stops the here-doc token when it sees a ), and doesn't color the rest of the line as string -- though there's no normal syntax highlight for the rest of the line, since w/o the ability to re-apply patterns to captures (which is planned), this is a lot of work that I'm not the one who is going to make :)
Xavier, how did you manage to keep the gorgeous drop-shadow on your screenshot? I grab from within preview, and it doesen't seem to keep the drop- shadow ...
Andreas
On Oct 15, 2005, at 9:45, Andreas Wahlin wrote:
Xavier, how did you manage to keep the gorgeous drop-shadow on your screenshot? I grab from within preview, and it doesen't seem to keep the drop- shadow ...
That's SnapProX 2 from Ambrosia Software (http://www.ambrosiasw.com). It has several options for the capture, resizing, preview, shadows, rounded corners, you can select objects, areas of the screen, etc. I bought the version of the software that also takes movies and that was absolutely worth the money for me. I've used that feature to send small software demonstrations, report bugs, ..., very very useful. There's nothing like a bug report with a recorded demonstration step by step of the problem. Good stuff.
I wonder if SnapProX 2 is the software used by the Rails people for those demo movies.
-- fxn
On 15/10/2005, at 6:20 PM, Xavier Noria wrote:
On Oct 15, 2005, at 9:45, Andreas Wahlin wrote:
Xavier, how did you manage to keep the gorgeous drop-shadow on your screenshot? I grab from within preview, and it doesen't seem to keep the drop- shadow ...
That's SnapProX 2 from Ambrosia Software (http:// www.ambrosiasw.com). It has several options for the capture, resizing, preview, shadows, rounded corners, you can select objects, areas of the screen, etc. I bought the version of the software that also takes movies and that was absolutely worth the money for me. I've used that feature to send small software demonstrations, report bugs, ..., very very useful. There's nothing like a bug report with a recorded demonstration step by step of the problem. Good stuff.
I wonder if SnapProX 2 is the software used by the Rails people for those demo movies.
Alternately, press command-shift-4, then press space and click on the window you want to take a screenshot of. That'll save you some cash ;)
Tony Arnold --> http://tonyarnold.com/
Begin forwarded message:
From: Tony Arnold tonyarnold@gmail.com Date: 15 October 2005 6:39:05 PM To: TextMate users textmate@lists.macromates.com Subject: Re: [TxMt] [OT] Perl bundle here-doc syntax highlighting bug
On 15/10/2005, at 6:20 PM, Xavier Noria wrote:
On Oct 15, 2005, at 9:45, Andreas Wahlin wrote:
Xavier, how did you manage to keep the gorgeous drop-shadow on your screenshot? I grab from within preview, and it doesen't seem to keep the drop- shadow ...
That's SnapProX 2 from Ambrosia Software (http:// www.ambrosiasw.com). It has several options for the capture, resizing, preview, shadows, rounded corners, you can select objects, areas of the screen, etc. I bought the version of the software that also takes movies and that was absolutely worth the money for me. I've used that feature to send small software demonstrations, report bugs, ..., very very useful. There's nothing like a bug report with a recorded demonstration step by step of the problem. Good stuff.
I wonder if SnapProX 2 is the software used by the Rails people for those demo movies.
Alternately, press command-shift-4, then press space and click on the window you want to take a screenshot of. That'll save you some cash ;)
Oh, drop shadow... right :( Ignore me :)
Tony Arnold --> http://tonyarnold.com/
On 15/10/2005, at 10.40, Tony Arnold wrote:
Alternately, press command-shift-4, then press space and click on the window you want to take a screenshot of. That'll save you some cash ;)
Oh, drop shadow... right :( Ignore me :)
One can place a white window behind what's to be grabbed (e.g. a big Finder window with no content) and use the selection mode of shift- cmd 4.
On Oct 15, 2005, at 10:39, Tony Arnold wrote:
Alternately, press command-shift-4, then press space and click on the window you want to take a screenshot of. That'll save you some cash ;)
I know, but that has a cost, in terms of flexibility and beauty.
-- fxn