summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2011-08-24 12:19:49 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2011-08-24 12:22:10 +0200
commitdd13bbb113164e83fdf63a2b680c33b39fd80cdb (patch)
tree1c7e3c617970bc05874224a8e7499fceb072d175
parentc83bc4b94e1b26cdb29fceb5130195ad2fc236a8 (diff)
downloadfpGUI-dd13bbb113164e83fdf63a2b680c33b39fd80cdb.tar.xz
ide: include more file extensions to enable the syntax highlighting code.
-rw-r--r--examples/apps/ide/src/frm_main.pas3
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;