English
XProfEd - Opensource IDE

0.98 -> expansion for Faltungen

 

Jörg
Sellmeyer
after I dank iF understood have, that the Faltungen certain lines-code punched go have I time drangesetzt and a expansion written.
The Keywords must in the Navigationsliste present his.

After whom Global Deklarationen these procedure insert:
CompileMarkSeparation
Proc FoldMe

    Parameters FoldTag$
     $D ,FoldTag$
    Case FoldTag$ = :Return

    If (Left$(Upper$(FoldTag$),5) = PROC ) | (Left$(FoldTag$,2) ={)

        Declare z%,z$,s%

        WhileLoop (GetCount(Navlist&) - 1),0,-1

            z$=GetString$(Navlist&,&Loop)

            If Upper$(Left$(z$,Len(FoldTag$))) = Upper$(FoldTag$)

                If Edit#[AktTab%].SciMessage(~SCI_GETFOLDEXPANDED, &loop, 0)

                    SendMessage(Edit#[AktTab%].Handle&, ~SCI_SETSEL, 0, 0)
                    Edit#[AktTab%].Search(z$,1,1,0)
                    z% = Edit#[AktTab%].SciMessage(~SCI_GETSELECTIONSTART, 0, 0)
                    z% = Edit#[AktTab%].SciMessage(~SCI_LINEFROMPOSITION, z%, 0) + 1
                    Edit#[AktTab%].SciMessage(~SCI_TOGGLEFOLD, z%,0)

                EndIf

            EndIf

        Wend

    Else

        MessageBox(Nur Prozeduren können gefaltet werden oder Kommentare, die mit q{q beginnen!,Code falten: falsche Eingabe,~MB_ICONEXCLAMATION)

        EndIf

    ENDPROC


in the Main Menu (best in the Poup Options) the following insert:
CompileMarkSeparation
in the Hauptschleife:

under MenuItem(202) and MenuItem(232) (File/proposition open)
CompileMarkSeparation
Foldme File öffnen:

Case Options#.Navi% : FoldMe({-)


now go comments, The with {- begin, at Open same gefaltet.

below MenuItem(640)
CompileMarkSeparation
now go with Strg + F4 any Procedures gefaltet and MenuItem(642) can one Text indicated go the gefaltet becomes (presupposed he's in the Naviliste and begins with Proc or {).

I finds very useful, there one so finished Procedures or Codeteile with suitable Tags slip can and at Open only yet a überschaubaren area To see get.

Greeting
Jörg
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
09/25/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

903 Views

Untitledvor 0 min.
Web Scanner11/22/12

Themeninformationen

this Topic has 1 subscriber:

Jörg Sellmeyer (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie