Month: November 2014

Testing My New Code Formatter

I am using the Crayon Code Highlighter.  Let’s see how it works: procedure ConfigureOptions; var Option : IOptionDefintion; begin Option := TOptionsRegistry.RegisterUnNamedOption<string>(‘The file to be processed’, procedure(value : string) begin TSampleOptions.FileToProcess:= value; end); Option.Required := true; Option := TOptionsRegistry.RegisterOption<Boolean>(‘OutputInUpperCase’,’o’, ‘The output should be in upper case’, procedure(value : Boolean) begin TSampleOptions.OutputInUpperCase:= value; end); Option.Required :=…

Read the full article