 pilsdumps
Member
|
Hi,
Just started using Programmer’s Notepad (an excellent tool!) for some Perl scripting and have a couple of questions/issues;
1. I can’t comment out lines using the menu under edit->comments – all the options are greyed out. Perl doesn’t support multiline comments, but I was hoping I could select multiple lines and toggle the # that perl uses. Is this possible?
2. Is it possible to create code regions similar to that found in Visual Studio?
Thanks
|
 simon
Key Master
|
1. For perl, I’m not sure which version you’re using but I think line comments should be properly configured for the latest testing release. In any case, you should be able to open up perl.scheme and make sure that the language element starts like this:
<language name="perl" title="Perl" folding="true" >
<lexer name="perl" />
<comments line="#" />
2. Collapsing regions are supported in various languages as in Visual Studio, it just depends on the language for what kind of regions are supported. For most we use control blocks and class/function structures. For C# I think #region is supported as well. What specifically are you looking for?
|
 pilsdumps
Member
|
Hi Simon,
Point 1 works perfectly – cheers.
Regarding point 2, I was thinking about the #region #endregion function in VS which allows you to fold groups of functions etc. For instance, I usually group class properties within a properties region and can then collapse them all with one key stroke. Anyhow not a major problem. I might be able to do this with naked blocks but there are scoping issues to consider.
Thanks anyway!
|