mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 12:12:47 +02:00
EditorOpts: Folding for html
git-svn-id: trunk@24617 -
This commit is contained in:
parent
b69ccc3438
commit
3fbfb52cce
@ -38,15 +38,19 @@ uses
|
|||||||
Classes, SysUtils,
|
Classes, SysUtils,
|
||||||
// LCL
|
// LCL
|
||||||
Controls, ExtCtrls, Graphics, LCLProc, FileUtil, LResources, Forms,
|
Controls, ExtCtrls, Graphics, LCLProc, FileUtil, LResources, Forms,
|
||||||
// synedit
|
// Synedit
|
||||||
SynEdit, SynEditAutoComplete, SynEditHighlighter, SynEditHighlighterFoldBase, SynEditKeyCmds,
|
SynEdit, SynEditAutoComplete, SynEditKeyCmds, SynEditStrConst,
|
||||||
SynEditStrConst, SynEditMarkupBracket, SynEditMarkupHighAll, SynEditMarkupWordGroup,
|
SynEditMiscClasses, SynBeautifier, SynEditTextTrimmer, SynEditMouseCmds,
|
||||||
SynGutter, SynGutterBase, SynGutterCodeFolding, SynGutterLineNumber, SynGutterChanges,
|
SynPluginTemplateEdit, SynPluginSyncroEdit,
|
||||||
|
SynGutter, SynGutterBase, SynGutterCodeFolding, SynGutterLineNumber,
|
||||||
|
SynGutterChanges,
|
||||||
|
SynEditMarkupBracket, SynEditMarkupHighAll, SynEditMarkupWordGroup,
|
||||||
|
// SynEdit Highlighters
|
||||||
|
SynEditHighlighter, SynEditHighlighterFoldBase,
|
||||||
SynHighlighterCPP, SynHighlighterHTML, SynHighlighterJava, SynHighlighterLFM,
|
SynHighlighterCPP, SynHighlighterHTML, SynHighlighterJava, SynHighlighterLFM,
|
||||||
SynHighlighterPas, SynHighlighterPerl, SynHighlighterPHP, SynHighlighterSQL,
|
SynHighlighterPas, SynHighlighterPerl, SynHighlighterPHP, SynHighlighterSQL,
|
||||||
SynHighlighterPython, SynHighlighterUNIXShellScript, SynHighlighterXML,
|
SynHighlighterPython, SynHighlighterUNIXShellScript, SynHighlighterXML,
|
||||||
SynHighlighterJScript, SynEditMiscClasses, SynBeautifier, SynEditTextTrimmer,
|
SynHighlighterJScript,
|
||||||
SynEditMouseCmds, SynPluginTemplateEdit, SynPluginSyncroEdit,
|
|
||||||
// codetools
|
// codetools
|
||||||
LinkScanner, CodeToolManager, Laz_XMLCfg,
|
LinkScanner, CodeToolManager, Laz_XMLCfg,
|
||||||
// IDEIntf
|
// IDEIntf
|
||||||
@ -572,66 +576,66 @@ const
|
|||||||
EditorOptionsFoldInfoPas: Array [0..19] of TEditorOptionsFoldInfo
|
EditorOptionsFoldInfoPas: Array [0..19] of TEditorOptionsFoldInfo
|
||||||
= (
|
= (
|
||||||
(Name: dlgFoldPasProcedure; Xml: 'Procedure';
|
(Name: dlgFoldPasProcedure; Xml: 'Procedure';
|
||||||
Index: ord(cfbtProcedure)-1; Enabled: True),
|
Index: ord(cfbtProcedure); Enabled: True),
|
||||||
(Name: dlgFoldLocalPasVarType; Xml: 'LocalVarType';
|
(Name: dlgFoldLocalPasVarType; Xml: 'LocalVarType';
|
||||||
Index: ord(cfbtLocalVarType)-1; Enabled: True),
|
Index: ord(cfbtLocalVarType); Enabled: True),
|
||||||
(Name: dlgFoldPasProcBeginEnd; Xml: 'ProcBeginEnd';
|
(Name: dlgFoldPasProcBeginEnd; Xml: 'ProcBeginEnd';
|
||||||
Index: ord(cfbtTopBeginEnd)-1; Enabled: True),
|
Index: ord(cfbtTopBeginEnd); Enabled: True),
|
||||||
(Name: dlgFoldPasBeginEnd; Xml: 'BeginEnd';
|
(Name: dlgFoldPasBeginEnd; Xml: 'BeginEnd';
|
||||||
Index: ord(cfbtBeginEnd)-1; Enabled: True),
|
Index: ord(cfbtBeginEnd); Enabled: True),
|
||||||
(Name: dlgFoldPasRepeat; Xml: 'Repeat';
|
(Name: dlgFoldPasRepeat; Xml: 'Repeat';
|
||||||
Index: ord(cfbtRepeat)-1; Enabled: False),
|
Index: ord(cfbtRepeat); Enabled: False),
|
||||||
(Name: dlgFoldPasCase; Xml: 'Case';
|
(Name: dlgFoldPasCase; Xml: 'Case';
|
||||||
Index: ord(cfbtCase)-1; Enabled: False),
|
Index: ord(cfbtCase); Enabled: False),
|
||||||
(Name: dlgFoldPasTry; Xml: 'Try';
|
(Name: dlgFoldPasTry; Xml: 'Try';
|
||||||
Index: ord(cfbtTry)-1; Enabled: False),
|
Index: ord(cfbtTry); Enabled: False),
|
||||||
(Name: dlgFoldPasExcept; Xml: 'Except';
|
(Name: dlgFoldPasExcept; Xml: 'Except';
|
||||||
Index: ord(cfbtExcept)-1; Enabled: False),
|
Index: ord(cfbtExcept); Enabled: False),
|
||||||
(Name: dlgFoldPasAsm; Xml: 'Asm';
|
(Name: dlgFoldPasAsm; Xml: 'Asm';
|
||||||
Index: ord(cfbtAsm)-1; Enabled: True),
|
Index: ord(cfbtAsm); Enabled: True),
|
||||||
|
|
||||||
(Name: dlgFoldPasProgram; Xml: 'Program';
|
(Name: dlgFoldPasProgram; Xml: 'Program';
|
||||||
Index: ord(cfbtProgram)-1; Enabled: False),
|
Index: ord(cfbtProgram); Enabled: False),
|
||||||
(Name: dlgFoldPasUnit; Xml: 'Unit';
|
(Name: dlgFoldPasUnit; Xml: 'Unit';
|
||||||
Index: ord(cfbtUnit)-1; Enabled: False),
|
Index: ord(cfbtUnit); Enabled: False),
|
||||||
(Name: dlgFoldPasUnitSection; Xml: 'UnitSection';
|
(Name: dlgFoldPasUnitSection; Xml: 'UnitSection';
|
||||||
Index: ord(cfbtUnitSection)-1; Enabled: False),
|
Index: ord(cfbtUnitSection); Enabled: False),
|
||||||
(Name: dlgFoldPasUses; Xml: 'Uses';
|
(Name: dlgFoldPasUses; Xml: 'Uses';
|
||||||
Index: ord(cfbtUses)-1; Enabled: True),
|
Index: ord(cfbtUses); Enabled: True),
|
||||||
|
|
||||||
(Name: dlgFoldPasVarType; Xml: 'VarType';
|
(Name: dlgFoldPasVarType; Xml: 'VarType';
|
||||||
Index: ord(cfbtVarType)-1; Enabled: False),
|
Index: ord(cfbtVarType); Enabled: False),
|
||||||
(Name: dlgFoldPasClass; Xml: 'Class';
|
(Name: dlgFoldPasClass; Xml: 'Class';
|
||||||
Index: ord(cfbtClass)-1; Enabled: True),
|
Index: ord(cfbtClass); Enabled: True),
|
||||||
(Name: dlgFoldPasClassSection; Xml: 'ClassSection';
|
(Name: dlgFoldPasClassSection; Xml: 'ClassSection';
|
||||||
Index: ord(cfbtClassSection)-1; Enabled: True),
|
Index: ord(cfbtClassSection); Enabled: True),
|
||||||
(Name: dlgFoldPasRecord; Xml: 'Record';
|
(Name: dlgFoldPasRecord; Xml: 'Record';
|
||||||
Index: ord(cfbtRecord)-1; Enabled: True),
|
Index: ord(cfbtRecord); Enabled: True),
|
||||||
|
|
||||||
(Name: dlgFoldPasNestedComment; Xml: 'NestedComment';
|
(Name: dlgFoldPasNestedComment; Xml: 'NestedComment';
|
||||||
Index: ord(cfbtNestedComment)-1;Enabled: True),
|
Index: ord(cfbtNestedComment);Enabled: True),
|
||||||
|
|
||||||
(Name: dlgFoldPasIfDef; Xml: 'IfDef';
|
(Name: dlgFoldPasIfDef; Xml: 'IfDef';
|
||||||
Index: ord(cfbtIfDef)-1; Enabled: False),
|
Index: ord(cfbtIfDef); Enabled: False),
|
||||||
(Name: dlgFoldPasUserRegion; Xml: 'UserRegion';
|
(Name: dlgFoldPasUserRegion; Xml: 'UserRegion';
|
||||||
Index: ord(cfbtRegion)-1; Enabled: True)
|
Index: ord(cfbtRegion); Enabled: True)
|
||||||
);
|
);
|
||||||
|
|
||||||
EditorOptionsFoldInfoLFM: Array [0..2] of TEditorOptionsFoldInfo
|
EditorOptionsFoldInfoLFM: Array [0..2] of TEditorOptionsFoldInfo
|
||||||
= (
|
= (
|
||||||
( Name: dlgFoldLfmObject;
|
( Name: dlgFoldLfmObject;
|
||||||
Xml: 'Object';
|
Xml: 'Object';
|
||||||
Index: ord(cfbtLfmObject)-1;
|
Index: ord(cfbtLfmObject);
|
||||||
Enabled: True
|
Enabled: True
|
||||||
),
|
),
|
||||||
( Name: dlgFoldLfmList;
|
( Name: dlgFoldLfmList;
|
||||||
Xml: 'List';
|
Xml: 'List';
|
||||||
Index: ord(cfbtLfmList)-1;
|
Index: ord(cfbtLfmList);
|
||||||
Enabled: True
|
Enabled: True
|
||||||
),
|
),
|
||||||
( Name: dlgFoldLfmItem;
|
( Name: dlgFoldLfmItem;
|
||||||
Xml: 'Item';
|
Xml: 'Item';
|
||||||
Index: ord(cfbtLfmItem)-1;
|
Index: ord(cfbtLfmItem);
|
||||||
Enabled: True
|
Enabled: True
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -640,27 +644,46 @@ const
|
|||||||
= (
|
= (
|
||||||
( Name: dlgFoldXmlNode;
|
( Name: dlgFoldXmlNode;
|
||||||
Xml: 'Node';
|
Xml: 'Node';
|
||||||
Index: ord(cfbtXmlNode)-1;
|
Index: ord(cfbtXmlNode);
|
||||||
Enabled: True
|
Enabled: True
|
||||||
),
|
),
|
||||||
( Name: dlgFoldXmlComment;
|
( Name: dlgFoldXmlComment;
|
||||||
Xml: 'Comment';
|
Xml: 'Comment';
|
||||||
Index: ord(cfbtXmlComment)-1;
|
Index: ord(cfbtXmlComment);
|
||||||
Enabled: True
|
Enabled: True
|
||||||
),
|
),
|
||||||
( Name: dlgFoldXmlCData;
|
( Name: dlgFoldXmlCData;
|
||||||
Xml: 'CData';
|
Xml: 'CData';
|
||||||
Index: ord(cfbtXmlCData)-1;
|
Index: ord(cfbtXmlCData);
|
||||||
Enabled: True
|
Enabled: True
|
||||||
),
|
),
|
||||||
( Name: dlgFoldXmlDocType;
|
( Name: dlgFoldXmlDocType;
|
||||||
Xml: 'DocType';
|
Xml: 'DocType';
|
||||||
Index: ord(cfbtXmlDocType)-1;
|
Index: ord(cfbtXmlDocType);
|
||||||
Enabled: True
|
Enabled: True
|
||||||
),
|
),
|
||||||
( Name: dlgFoldXmlProcess;
|
( Name: dlgFoldXmlProcess;
|
||||||
Xml: 'ProcessInstr';
|
Xml: 'ProcessInstr';
|
||||||
Index: ord(cfbtXmlProcess)-1;
|
Index: ord(cfbtXmlProcess);
|
||||||
|
Enabled: True
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
EditorOptionsFoldInfoHTML: Array [0..2] of TEditorOptionsFoldInfo
|
||||||
|
= (
|
||||||
|
( Name: dlgFoldHtmlNode;
|
||||||
|
Xml: 'Node';
|
||||||
|
Index: ord(cfbtHtmlNode);
|
||||||
|
Enabled: True
|
||||||
|
),
|
||||||
|
( Name: dlgFoldHtmlComment;
|
||||||
|
Xml: 'Comment';
|
||||||
|
Index: ord(cfbtXmlComment);
|
||||||
|
Enabled: True
|
||||||
|
),
|
||||||
|
( Name: dlgFoldHtmlAsp;
|
||||||
|
Xml: 'ASP';
|
||||||
|
Index: ord(cfbtHtmlAsp);
|
||||||
Enabled: True
|
Enabled: True
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -673,7 +696,7 @@ const
|
|||||||
(Count: 20; Info: {$IFDEF FPC}@{$ENDIF}EditorOptionsFoldInfoPas[0]), // pas
|
(Count: 20; Info: {$IFDEF FPC}@{$ENDIF}EditorOptionsFoldInfoPas[0]), // pas
|
||||||
(Count: 3; Info: {$IFDEF FPC}@{$ENDIF}EditorOptionsFoldInfoLFM[0]), // lfm
|
(Count: 3; Info: {$IFDEF FPC}@{$ENDIF}EditorOptionsFoldInfoLFM[0]), // lfm
|
||||||
(Count: 5; Info: {$IFDEF FPC}@{$ENDIF}EditorOptionsFoldInfoXML[0]), // xml
|
(Count: 5; Info: {$IFDEF FPC}@{$ENDIF}EditorOptionsFoldInfoXML[0]), // xml
|
||||||
(Count: 0; Info: nil), // html
|
(Count: 3; Info: {$IFDEF FPC}@{$ENDIF}EditorOptionsFoldInfoHTML[0]), // html
|
||||||
(Count: 0; Info: nil), // cpp
|
(Count: 0; Info: nil), // cpp
|
||||||
(Count: 0; Info: nil), // perl
|
(Count: 0; Info: nil), // perl
|
||||||
(Count: 0; Info: nil), // java
|
(Count: 0; Info: nil), // java
|
||||||
|
@ -1460,6 +1460,10 @@ resourcestring
|
|||||||
dlgFoldXmlDocType = 'DocType';
|
dlgFoldXmlDocType = 'DocType';
|
||||||
dlgFoldXmlProcess = 'Processing Instruction';
|
dlgFoldXmlProcess = 'Processing Instruction';
|
||||||
|
|
||||||
|
dlgFoldHtmlNode = 'Node';
|
||||||
|
dlgFoldHtmlComment = 'Comment';
|
||||||
|
dlgFoldHtmlAsp = 'ASP';
|
||||||
|
|
||||||
dlgMouseFoldExpFoldOne = 'Fold One (All Expanded)';
|
dlgMouseFoldExpFoldOne = 'Fold One (All Expanded)';
|
||||||
dlgMouseFoldExpFoldAll = 'Fold All (All Expanded)';
|
dlgMouseFoldExpFoldAll = 'Fold All (All Expanded)';
|
||||||
dlgMouseFoldColFoldOne = 'Fold One (Some Colapsed)';
|
dlgMouseFoldColFoldOne = 'Fold One (Some Colapsed)';
|
||||||
|
Loading…
Reference in New Issue
Block a user