Perl schema comments and code regions

Discussion Forums discussion Perl schema comments and code regions

This topic contains 0 voices and has 2 replies.

Viewing 3 posts - 1 through 3 (of 3 total)
Author Posts
Author Posts
September 19, 2010 at 1:53 pm #5085



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?


September 20, 2010 at 1:49 pm #17351

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?

September 20, 2010 at 6:33 pm #17352


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!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.