#1 2007-11-22 21:02

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

New column for Rules: Script file name

Playing around with pascal script
i think wouldn't  it be fine to have a new column in the above rule panel
which display the file name of the current pascal script (with out the ext)
as addition to the pascal script content ?


|   *  | Rule           | Name                 | Statement                                                                                                                         |

|[ ] 1 | PascalScript | Pad numeric sequ | const PAD_TO_LENGTH = 3; function CountDigits(const S: WideString; StartI: Integer): Integer; |


For other Rules then PascalScript this column could be empty and even drag as small as possible.

As workaround i will think about to add always an comment // in very first line of my scripts which hold the file name of my script so i see this with 'Statement'.



just thinking
bye
Stefan


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#2 2008-01-05 17:31

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,374

Re: New column for Rules: Script file name

I think adding comments at the beginning of the script would be a better way. PascalScipt rule is not aware of the script's filename which it uses. Saved scripts are just loaded into the "code" field, and then forgotten.

You can use either of these commenting styles:
{ comments }
// comments
(* comments *)

Offline

Board footer

Powered by FluxBB