Hi,
can i add comments into the command line (Win) ? Something like this :
convert ^
-size 600x300 ^
# comment text here ^
xc:none ^
empty3.png
I tried rem, // and # but is not possible within the command itself.
Regards,
Frank
Can i add comments within the command ?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Can i add comments within the command ?
I do not believe that is possible in IM 6
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Can i add comments within the command ?
No, IM doesn't currently have a syntax for comments. I have asked for this: viewtopic.php?f=2&t=23593&p=100107 If you add your voice to the request, it is more likely to be implemented.
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Can i add comments within the command ?
Best I can suggest is to do what snibgo usually does and put one command on each line of code
convert image ^
command1 ^
command2 ^
...
result
Then what I do is put a line by line set of comments above it to explain what each line of code does.
I usually don't break things up that much, but I do make my lines shorter as significant to the functions being done and put a new parenthesis set of commands on at least one new line, if not break them up and use tabs to offset them logically.
convert image ^
command1 ^
command2 ^
...
result
Then what I do is put a line by line set of comments above it to explain what each line of code does.
I usually don't break things up that much, but I do make my lines shorter as significant to the functions being done and put a new parenthesis set of commands on at least one new line, if not break them up and use tabs to offset them logically.
Re: Can i add comments within the command ?
ok, so as far as i understand it can't be done this way :fmw42 wrote:convert image ^
command1 ^
command2 ^
...
result
convert image ^
#comment here
command1 ^
#comment here
command2 ^
...
result
instead :
# command here
convert image ^
command1 ^
command2 ^
...
result
# command here
pls let me know if not correct.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Can i add comments within the command ?
That is correct. Best to do
# line1: does this
# line2: does that
# line3: does something else
...
convert image ^
command1 ^
command2 ^
...
result
# line1: does this
# line2: does that
# line3: does something else
...
convert image ^
command1 ^
command2 ^
...
result
Re: Can i add comments within the command ?
ya that's a good idea, thx
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Can i add comments within the command ?
However, the prefix for comments in Windows is "rem" or "::", not "#".
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Can i add comments within the command ?
snibgo wrote:However, the prefix for comments in Windows is "rem" or "::", not "#".
Thanks. I am on unix and gave mixed information -- windows line endings, but unix comments. Sorry, snibgo is correct.