Raistware wrote:
Mattias Gärtner escribió:
Zitat von Graeme Geldenhuys <[EMAIL PROTECTED]>:

Hi,

Does Lazarus support some sort of code folding 'region' keyword like
the Visual Studio IDE does?  I know Lazarus automatically handle
begin..end etc. But can the user add there own code folding regions
around their code.

Here is an example of regions used in the Visual Studio IDE for C# code

 #Region " Windows Form Designer generated code "
...
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
...
Me.ImageList1 = _
    New System.Windows.Forms.ImageList(Me.components)
...
#End Region

Just add that to the highlighter TSynPasSyn and it will support it.

Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Hello guys!

In CodeGear that is achieved with these tags:

{$REGION 'Description about the fold'}
Code
..
..
{$ENDREGION}

For IDE related hits, I would prefer

 {%REGION 'Description about the fold'}
 Code
 ..
 ..
 {%ENDREGION}

(since it is no compiler directive)

Marc

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to