⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editunit.dfm.svn-base

📁 支持自定义语法高亮显示的编辑器控件
💻 SVN-BASE
📖 第 1 页 / 共 5 页
字号:
      E003E003F007F007F007F0070000}
    LineDivider.Options = []
    LineDivider.Brush.Color = clBtnShadow
    LineBreak = lbCRLF
    LineNumbers.Options = []
    LineStyles = <
      item
        BackColor = clRed
        ImageIndex = 11
      end
      item
        BackColor = clOlive
        ImageIndex = 14
      end
      item
        Name = 'Test'
        BackColor = clInfoBk
        ImageIndex = 12
      end>
    Margin.Pen.Color = clBtnShadow
    Options = [eoPaintGutter, eoPaintMargin, eoOverwriteBlocks, eoEnableDragging, eoEnableSearchHighlight, eoEnableSelection, eoSelectBeyondEol, eoForceCutCopy, eoLineStyleBeyondEol, eoInvertLineStyle]
    PageNumFont.Charset = DEFAULT_CHARSET
    PageNumFont.Color = clWindowText
    PageNumFont.Height = -11
    PageNumFont.Name = 'MS Sans Serif'
    PageNumFont.Style = []
    PopupWindow.Height = 192
    PopupWindow.Width = 256
    PopupWindow.SizeAble = True
    Ruler.Options = []
    Ruler.Units = erMilimeters
    ScrollBars = ssBoth
    SourceOptions = [srAutoIndent, srBackUnindents, srAllowUndo, srGroupUndo, srBeyondEol, srHighlightUrls]
    TabOrder = 0
    TabStop = True
    UseGlobalSettings = True
    CodeParamChars = '.'
    OnBeforeInsertPopup = EasyEditBeforeInsertPopup
    OnGetDrawStyle = EasyEditGetDrawStyle
    OnSourceChanged = EasyEditSourceChanged
    OnSelectionChanged = EasyEditSelectionChanged
    OnAutoComplete = EasyEditAutoComplete
    OnDisplayHint = EasyEditDisplayHint
    OnFindStringInPopup = EasyEditFindStringInPopup
    OnMouseMove = EasyEditMouseMove
    OnMouseUp = EasyEditMouseUp
    OnKeyDown = EasyEditKeyDown
    OnKeyPress = EasyEditKeyPress
  end
  object JScrParser: TEasyEditorParser
    Rules.Strings = (
      '// states'
      'State=snormal,CaseSensitive'
      'State=sstring1'
      'State=sstring2'
      'State=scomment1'
      'State=scomment2'
      '// tokens'
      'Token=tnone'
      'Token=tstring'
      'Token=tcomment'
      'Token=tident'
      'Token=tinteger'
      'Token=tfloat'
      'Token=tresword'
      'Token=tassembler'
      'Token=turl'
      'Token=twhitespace'
      '//delims'
      'Delimiters=;.,:'#39'"{}[]()?!@#$%^&*-+=|\/'
      ''
      '// reswords'
      'snormal '#39'break'#39'        snormal tresword'
      'snormal '#39'case'#39'         snormal tresword'
      'snormal '#39'catch'#39'        snormal tresword'
      'snormal '#39'class'#39'        snormal tresword'
      'snormal '#39'const'#39'        snormal tresword'
      'snormal '#39'continue'#39'     snormal tresword'
      'snormal '#39'debugger'#39'     snormal tresword'
      'snormal '#39'default'#39'      snormal tresword'
      'snormal '#39'delete'#39'       snormal tresword'
      'snormal '#39'do'#39'           snormal tresword'
      'snormal '#39'else'#39'         snormal tresword'
      'snormal '#39'enum'#39'         snormal tresword'
      'snormal '#39'export'#39'       snormal tresword'
      'snormal '#39'extends'#39'      snormal tresword'
      'snormal '#39'false'#39'        snormal tresword'
      'snormal '#39'finally'#39'      snormal tresword'
      'snormal '#39'for'#39'          snormal tresword'
      'snormal '#39'function'#39'     snormal tresword'
      'snormal '#39'if'#39'           snormal tresword'
      'snormal '#39'import'#39'       snormal tresword'
      'snormal '#39'in'#39'           snormal tresword'
      'snormal '#39'new'#39'          snormal tresword'
      'snormal '#39'null'#39'         snormal tresword'
      'snormal '#39'return'#39'       snormal tresword'
      'snormal '#39'super'#39'        snormal tresword'
      'snormal '#39'switch'#39'       snormal tresword'
      'snormal '#39'this'#39'         snormal tresword'
      'snormal '#39'throw'#39'        snormal tresword'
      'snormal '#39'true'#39'         snormal tresword'
      'snormal '#39'try'#39'          snormal tresword'
      'snormal '#39'typeof'#39'       snormal tresword'
      'snormal '#39'var'#39'          snormal tresword'
      'snormal '#39'void'#39'         snormal tresword'
      'snormal '#39'while'#39'        snormal tresword'
      'snormal '#39'with'#39'         snormal tresword'
      ' // numbers'
      'snormal [0-9][0-9]*                            snormal  tinteger'
      'snormal 0X[0-9A-F]+                            snormal  tinteger'
      'snormal [1-9][0-9]*\.[0-9]*                    snormal  tfloat'
      'snormal [1-9][0-9]*{\.[0-9]+}|e{[\+\-]}|[0-9]+ snormal  tfloat'
      '//idents'
      'snormal   [a-z_A-Z][a-z_A-Z0-9]*  snormal   tident'
      ''
      '//white space'
      'snormal #32*                      snormal   twhitespace'
      ''
      ''
      '//strings'
      'snormal    \'#39'                     sstring1   tstring'
      'sstring1   [^\'#39']*                 sstring1   tstring'
      'sstring1   \'#39'                     snormal    tstring'
      'sstring1   \'#39'\'#39'                   sstring1   tstring'
      'sstring1   \\                     sstring1   tstring'
      'sstring1   \\\'#39'                   sstring1   tstring'
      'sstring1   $                      snormal    tstring'
      ''
      '//strings'
      'snormal     \"                    sstring2   tstring'
      'sstring2   [^\"]*                 sstring2   tstring'
      'sstring2   \"                     snormal    tstring'
      'sstring2   \"\"                   sstring2   tstring'
      'sstring2   \\                     sstring2   tstring'
      'sstring2   \\\"                   sstring2   tstring'
      'sstring2   $                      snormal    tstring'
      ''
      ''
      '//comments'
      'snormal   //                      scomment1 tcomment'
      'scomment1 [#1-#255]*              snormal   tcomment'
      'scomment1 $                       snormal   tcomment'
      ''
      'snormal   /\*                     scomment2 tcomment'
      'scomment2 [^\*]*                  scomment2 tcomment'
      'scomment2 \*[^/]                  scomment2 tcomment'
      'scomment2 [\*]*/                  snormal   tcomment')
    Styles = <
      item
        FontColor = clBlack
        Name = 'tnone'
      end
      item
        FontColor = clMaroon
        Name = 'tstring'
      end
      item
        FontColor = clNavy
        FontStyle = [fsItalic]
        Name = 'tcomment'
      end
      item
        FontColor = clBlack
        Name = 'tident'
      end
      item
        FontColor = clBlack
        Name = 'tinteger'
      end
      item
        FontColor = clBlack
        Name = 'tfloat'
      end
      item
        FontColor = clBlack
        FontStyle = [fsBold]
        Name = 'tresword'
      end
      item
        FontColor = clGreen
        Name = 'tassembler'
      end
      item
        FontColor = clBlue
        FontStyle = [fsUnderline]
        Name = 'turl'
      end
      item
        FontColor = clBlack
        Name = 'twhitespace'
      end
      item
        FontColor = clHighlightText
        Color = clHighlight
        Name = 'Active Selection'
      end
      item
        Color = clBtnFace
        Name = 'Inactive Selection'
      end
      item
        FontColor = clLime
        Color = clBlack
        Name = 'Search Match'
      end
      item
        FontColor = clBtnFace
        Color = -1
        Name = 'Disabled Color'
      end
      item
        FontColor = clBtnFace
        Color = -1
        Name = 'ReadOnly Color'
      end>
    ColorMapping = cmDefault
    UseGlobalSettings = True
    Left = 96
    Top = 40
  end
  object HtmlParser: TEasyEditorParser
    Rules.Strings = (
      '// states'
      'State=snormal'
      'State=sstring1'
      'State=sstring2'
      'State=sstring3'
      'State=sstring4'
      'State=scomment1'
      'State=scomment2'
      'State=scomment3'
      'State=shtmltag'
      'State=sHTMLjs'
      ''
      '// tokens'

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -