From fad5c84349c18792541fe72860516a9fa7949d47 Mon Sep 17 00:00:00 2001 From: mattias Date: Wed, 27 Jul 2016 11:00:21 +0000 Subject: [PATCH] IDE: editor options: highlight by default xhtml, wsdl, svg, js sample source, patch from Darek Mazur, issue #30399 git-svn-id: trunk@52751 - --- ide/editoroptions.pp | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/ide/editoroptions.pp b/ide/editoroptions.pp index 27e1d730a5..9497c929cb 100644 --- a/ide/editoroptions.pp +++ b/ide/editoroptions.pp @@ -2714,7 +2714,7 @@ begin TheType := lshHTML; DefaultCommentType := DefaultCommentTypes[TheType]; SynClass := LazSyntaxHighlighterClasses[TheType]; - SetBothFilextensions('htm;html'); + SetBothFilextensions('htm;html;xhtml'); SampleSource := ''#13 + 'Lazarus Sample source for html'#13 + ''#13 + @@ -2774,7 +2774,7 @@ begin TheType := lshXML; DefaultCommentType := DefaultCommentTypes[TheType]; SynClass := LazSyntaxHighlighterClasses[TheType]; - SetBothFilextensions('xml;xsd;xsl;xslt;dtd;lpi;lps;lpk'); + SetBothFilextensions('xml;xsd;xsl;xslt;dtd;lpi;lps;lpk;wsdl;svg'); SampleSource := ''#13 + ''#13 + ''#13 + ''#13 + @@ -3026,7 +3026,19 @@ begin SetBothFilextensions('js'); SampleSource := '/* JScript */'#13#10 + - '/* To be written ... /*'#13#10 + #13#10 + + 'var semafor={'#13#10 + + ' semafor:0,'#13#10 + + ' timer:null,'#13#10 + + ' name:"Name",'#13#10 + + ' clear: function(){'#13#10 + + ' try{'#13#10 + + ' this.semafor=0;'#13#10 + + ' clearTimeout(this.timer);'#13#10 + + ' } catch (e) { }'#13#10 + + ' }'#13#10 + + '};'#13#10 + + + #13#10 + '/* Text Block */'#13#10 + #13#10; AddAttrSampleLines[ahaTextBlock] := 2; MappedAttributes := TStringList.Create;