Simon,
Try as I might, I cannot get my .want file to appear correctly. I deleted all .cscheme files, and UserSettings.xml. Re-running PN at thi spoint causes it to re-create all .cscheme files. All the other languages look OK, but my want-script does not: the font used is 8pt Arial, or equivalent.
Here is my .schemedef file:
<?xml version="1.0" encoding="UTF-8"?>
<Scheme>
<keyword-classes>
<keyword-class name="want">
program const type var begin break end array set record if then else
while for to downto do with repeat until case of goto exit label procedure
function nil and or not xor div mod imports implementation interface
external object constructor destructor virtual
inherited library export exports
class raise try except on index name finally
module call variables constants
</keyword-class>
<keyword-class name="want_inclass">
read write override overload public protected private property published
</keyword-class>
<keyword-class name="want_foldwords">
target procedure begin object case class record try call
</keyword-class>
</keyword-classes>
<schemedef name="want" title="WANTScript" author="Andrew Wozniewicz"
url="http://www.optimax.com/want/" version="4" casesensitive="false"
braces="{[()]}">
<lexer name="want" />
<!-- Max 2 -->
<strings>
<!-- Double quotes string, with \ as an escape character. -->
<stringtype id="0" start=""" end=""" multiline="false" escape="\"/>
<stringtype id="1" start="'" end="'" multiline="false" escape="\"/>
</strings>
<identifiers start="[a-zA-Z]" />
<comments>
<line start="//" />
<block start="(*" end="*)" />
</comments>
<numbers start="[0-9]" content="[0-9a-f.x]" />
<use-keywords>
<keyword key="0" name="Keywords" class="want"/>
<keyword key="1" name="Property Keywords" class="want_inclass"/>
<keyword key="2" name="Fold Start Words" class="want_foldwords"/>
</use-keywords>
<use-styles>
<style name="Line Comment" key="1" class="comment" fore="008800"/>
<style name="Block Comment" key="2" class="comment" fore="008800"/>
<style name="Identifier" key="3" class="identifier" fore="ff8800"/>
<style name="Number" key="4" class="number" fore="008888"/>
<style name="Keywords" key="5" class="keyword" fore="ff0000"/>
<style name="Keywords2" key="6" class="keyword" fore="f80000" />
<style name="String" key="10" class="string" fore="ff00ff"/>
<style name="String2" key="11" class="string" fore="ff00ff"/>
</use-styles>
</schemedef>
</Scheme>
And here is a sample WantScript code file:
module Test0;
System.Console.WriteLn("Test");
WriteLn("Test");
Test2;
System.Console.Write("Press ENTER...");
ReadLn;
import Build, Common;
import System.Console;
const DaysInYear = 365;
const DaysInLeapYear = DaysInYear + 1;
const PerforceFolder = 'c:\p4src';
const SchemaFolder = PipelineFolder + "\Documents";
const PipelineFolder = PerforceFolder + "\Pipeline"
procedure Test2;
call AnotherTestProc with
"ABC"
"XYZ"
end
end;
procedure Test;
WriteLn("Test");
WriteLn("DaysInYear: ",DaysInYear);
WriteLn("SchemaFolder: ",SchemaFolder);
end;
procedure AnotherTestProc(A, B)
WriteLn("Test");
WriteLn("DaysInYear: " ,DaysInYear);
WriteLn("SchemaFolder: ", SchemaFolder)
WriteLn(A)
WriteLn(B)
Test;
end;
end;
Just a guess, but it looks to me there is some other place where font information is stored (registry?) and clearing the .cscheme files does not affect it...
Thanks,
Andrew