Hello,
I work on Perl scripts hosted on Unix servers, and do my editing in Textpad via FTP.
I would like the Perl document class to detect Perl scripts without a .pl extension, as most Unix scripts have no extension.
Would it be possible for Textpad to be able to read the "shebang" that most Unix scripts use on the first line of the script. For example Perl uses:
#!/usr/bin/perl on the first line.
I'm sure it would also help Python and other Unix script users too.
Perl Document Class with .pl extension
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
Roy Beatty
Re: Perl Document Class with .pl extension
Sorry I can only offer kludges
One solution *would* have been to specify in TextPad's shortcut target property, a command line option to specify a syntax file to apply. Unfortunately, I was not able to find such a beastie in TextPad Help. Go to http://www.textpad.com/support/index.html to enter this as an enhancement request.
Meanwhile, you'd have to temporarily rename the copy of the script you are editting to <whatever>.pl, and undo the rename after TextPad closes the file.
HTH,
Roy
One solution *would* have been to specify in TextPad's shortcut target property, a command line option to specify a syntax file to apply. Unfortunately, I was not able to find such a beastie in TextPad Help. Go to http://www.textpad.com/support/index.html to enter this as an enhancement request.
Meanwhile, you'd have to temporarily rename the copy of the script you are editting to <whatever>.pl, and undo the rename after TextPad closes the file.
HTH,
Roy
-
Matthew Lock
Re: Perl Document Class with .pl extension
I have entered the ability for the document class to be determined from the first line of the file, as a feature enhancement.
-
Andreas
Re: Perl Document Class with .pl extension
No need for renaming.
View - Document Properties - Syntax Tab
select whatever syn-File you want.
If you keep your files in a Textpad Workspace, this setting will be remembered the next time you open the workspace.
View - Document Properties - Syntax Tab
select whatever syn-File you want.
If you keep your files in a Textpad Workspace, this setting will be remembered the next time you open the workspace.