diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-08-24 12:19:49 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-08-24 12:22:10 +0200 |
commit | dd13bbb113164e83fdf63a2b680c33b39fd80cdb (patch) | |
tree | 1c7e3c617970bc05874224a8e7499fceb072d175 /examples | |
parent | c83bc4b94e1b26cdb29fceb5130195ad2fc236a8 (diff) | |
download | fpGUI-dd13bbb113164e83fdf63a2b680c33b39fd80cdb.tar.xz |
ide: include more file extensions to enable the syntax highlighting code.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/apps/ide/src/frm_main.pas | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/apps/ide/src/frm_main.pas b/examples/apps/ide/src/frm_main.pas index 08f4ddae..b643bd02 100644 --- a/examples/apps/ide/src/frm_main.pas +++ b/examples/apps/ide/src/frm_main.pas @@ -611,7 +611,8 @@ begin if gINI.ReadBool(cEditor, 'SyntaxHighlighting', True) then begin ext := fpgExtractFileExt(AFilename); - if (ext = '.pas') or (ext = '.pp') or (ext = '.inc') then + if (ext = '.pas') or (ext = '.pp') or (ext = '.inc') or (ext = '.lpr') + or (ext = '.dpr') then TfpgTextEdit(ts.Components[0]).OnDrawLine := @TextEditDrawLine; end; ts.Realign; |