Code: Select all
$psd = <<<PSD
Remove that and get an editor that is able to show these things (like Sublime Text or a bunch of others).
Code: Select all
$psd = <<<PSD
I have begun using Sublime text.highend wrote:You have a trailing space at the end of this line...Code: Select all
$psd = <<<PSD
Remove that and get an editor that is able to show these things (like Sublime Text or a bunch of others).
That was one of the first things I did, although it didn't solve the problem When I strictly select a PSD file, I see a heredoc menu item; when I select any type of file I see the PSD menu item which I shouldn't, it should strictly be shown only when a PSD file is selected.highend wrote:Try to remove all leading spaces in the $txt = <<<DOC line.
Oh yes, I also had my share of these, the screenshot looks very familiar, due to Heredoc syntax mistakes. What highend already pointed out, you have to be aware of trailing (!) blanks as well, not just leading white space. This should be emphasized in the help file. Not somewhere under troubleshooting, but up front, before you get started, in big bold letters.PeterH wrote:I had this form of parsing error caused by syntax errors, like illegal form of heredoc, illegal form of labels, or illegal quoting.
2 days ago here http://www.xyplorer.com/xyfc/viewtopic. ... 75#p126058 I said,highend wrote:You have a trailing space at the end of this line...
Why, because I spotted one.When copying/pasting make sure you don't have extra spaces in there as you did after the initial heredoc statement.
Thanks, Ken!SkyFrontier wrote:...would you mind sharing the AHK, then?
<shared>
Me too. But the final scan for unwanted white space is really important.klownboy wrote: an editor that can display spaces and tabs as well as end of line. Even free ones like NotePad++ can do that. Yo u do have to remember to turn them on. Because I find them a bit annoying, I usually don't turn them on until I start testing a script.