1. CodeLite
- Posted by jeremy (admin) Jun 04, 2009
- 1850 views
I have recently stumbled across CodeLite, http://codelite.org and have made a simple lexer for Euphoria. The lexer can be downloaded at: http://jeremy.cowgar.com/files/lexer_euphoria.xml
CodeLite is an IDE written in C using wxWidgets. It works on Windows, Linux, BSDs as well as OS X. I have not played with it much, just long enough to write the xml euphoria definition and to see that it seems like a capable system.
Jeremy
2. Re: CodeLite
- Posted by AndyDrummond Jun 06, 2009
- 1787 views
Codelite looks good, I agree, but your lexer link fails, Jeremy. Am I the only person to have tried it?
Andy
4. Re: CodeLite
- Posted by jimcbrown (admin) Jun 06, 2009
- 1778 views
Works fine for me here.
Here's the text:
<!-- CodeLite Lexer Definition for the Euphoria Programming Language CodeLite: http://codelite.org Euphoria: http://openeuphoria.org and http://rapideuphoria.com Place this file in the directory C:\Program Files\CodeLite\lexers\Default for Windows. It will work also on Linux and OS X, but the path varies per installation. --> <?xml version="1.0" encoding="UTF-8"?> <Lexer Name="Euphoria" Id="3"> <KeyWords0>as and by case constant do end else elsif enum export for function global include if label loop not or override procedure public switch then type to until while xor</KeyWords0> <KeyWords1>object sequence integer atom</KeyWords1> <KeyWords2>break continue entry exit goto glabel retry return</KeyWords2> <KeyWords3>ifdef elsifdef elsedef trace with without</KeyWords3> <KeyWords4/> <Extensions>*.e;*.ew;*.ex;*.exd;*.exw;</Extensions> <Properties> <Property Id="0" Name="Default" Bold="no" Face="" Colour="#808080" BgColour="#FFFFFF" Size="9"/> <Property Id="1" Name="Comment" Bold="no" Face="" Colour="#008040" BgColour="white" Size="9"/> <Property Id="2" Name="Comment Line" Bold="no" Face="" Colour="#008000" BgColour="white" Size="9"/> <Property Id="3" Name="Comment Doc" Bold="no" Face="" Colour="#004080" BgColour="white" Size="9"/> <Property Id="4" Name="Number" Bold="no" Face="" Colour="#FF00FF" BgColour="white" Size="9"/> <Property Id="5" Name="Keyword" Bold="no" Face="" Colour="#0080FF" BgColour="white" Size="9"/> <Property Id="6" Name="String" Bold="no" Face="" Colour="#FF8000" BgColour="white" Size="9"/> <Property Id="7" Name="Character" Bold="no" Face="" Colour="#FF8040" BgColour="white" Size="9"/> <Property Id="8" Name="String Literal" Bold="no" Face="" Colour="#FF8000" BgColour="white" Size="9"/> <Property Id="9" Name="Preprocessor" Bold="no" Face="" Colour="#804040" BgColour="white" Size="9"/> <Property Id="10" Name="Operator" Bold="no" Face="" Colour="#808080" BgColour="white" Size="9"/> <Property Id="11" Name="Identifier" Bold="no" Face="" Colour="#000000" BgColour="white" Size="9"/> <Property Id="-1" Name="Fold Margin" Bold="no" Face="" Colour="#FFFFFF" BgColour="#D0D0D0" Size="9"/> <Property Id="-2" Name="Text Selection" Bold="no" Face="" Colour="#000000" BgColour="#C0C0C0" Size="9"/> <Property Id="-3" Name="Caret Colour" Bold="no" Face="" Colour="#000000" BgColour="#000000" Size="9"/> <Property Id="33" Name="Line Numbers" Bold="no" Face="" Colour="#004080" BgColour="#FFFFFF" Size="9"/> <Property Id="34" Name="Brace match" Bold="yes" Face="" Colour="#FFFF00" BgColour="white" Size="9"/> <Property Id="35" Name="Brace bad match" Bold="yes" Face="" Colour="red" BgColour="white" Size="9"/> <Property Id="37" Name="Indent Guide" Bold="no" Face="" Colour="#C0C0C0" BgColour="#FFFFFF" Size="9"/> </Properties> </Lexer>
5. Re: CodeLite
- Posted by DerekParnell (admin) Jun 06, 2009
- 1734 views
Works fine for me here.
Works (kinda) here too.
The problem I get is that Opera complains that it is invalid XML. The problem is that
the comment should appear after the <?xml ...?> line, which should be the first line.
So the parser can tell what sort of file data follows.
This should be the text:
<?xml version="1.0" encoding="UTF-8"?> <!-- CodeLite Lexer Definition for the Euphoria Programming Language CodeLite: http://codelite.org Euphoria: http://openeuphoria.org and http://rapideuphoria.com Place this file in the directory C:\Program Files\CodeLite\lexers\Default for Windows. It will work also on Linux and OS X, but the path varies per installation. --> <Lexer Name="Euphoria" Id="3"> <KeyWords0>as and by case constant do end else elsif enum export for function global include if label loop not or override procedure public switch then type to until while xor</KeyWords0> <KeyWords1>object sequence integer atom</KeyWords1> <KeyWords2>break continue entry exit goto glabel retry return</KeyWords2> <KeyWords3>ifdef elsifdef elsedef trace with without</KeyWords3> <KeyWords4/> <Extensions>*.e;*.ew;*.ex;*.exd;*.exw;</Extensions> <Properties> <Property Id="0" Name="Default" Bold="no" Face="" Colour="#808080" BgColour="#FFFFFF" Size="9"/> <Property Id="1" Name="Comment" Bold="no" Face="" Colour="#008040" BgColour="white" Size="9"/> <Property Id="2" Name="Comment Line" Bold="no" Face="" Colour="#008000" BgColour="white" Size="9"/> <Property Id="3" Name="Comment Doc" Bold="no" Face="" Colour="#004080" BgColour="white" Size="9"/> <Property Id="4" Name="Number" Bold="no" Face="" Colour="#FF00FF" BgColour="white" Size="9"/> <Property Id="5" Name="Keyword" Bold="no" Face="" Colour="#0080FF" BgColour="white" Size="9"/> <Property Id="6" Name="String" Bold="no" Face="" Colour="#FF8000" BgColour="white" Size="9"/> <Property Id="7" Name="Character" Bold="no" Face="" Colour="#FF8040" BgColour="white" Size="9"/> <Property Id="8" Name="String Literal" Bold="no" Face="" Colour="#FF8000" BgColour="white" Size="9"/> <Property Id="9" Name="Preprocessor" Bold="no" Face="" Colour="#804040" BgColour="white" Size="9"/> <Property Id="10" Name="Operator" Bold="no" Face="" Colour="#808080" BgColour="white" Size="9"/> <Property Id="11" Name="Identifier" Bold="no" Face="" Colour="#000000" BgColour="white" Size="9"/> <Property Id="-1" Name="Fold Margin" Bold="no" Face="" Colour="#FFFFFF" BgColour="#D0D0D0" Size="9"/> <Property Id="-2" Name="Text Selection" Bold="no" Face="" Colour="#000000" BgColour="#C0C0C0" Size="9"/> <Property Id="-3" Name="Caret Colour" Bold="no" Face="" Colour="#000000" BgColour="#000000" Size="9"/> <Property Id="33" Name="Line Numbers" Bold="no" Face="" Colour="#004080" BgColour="#FFFFFF" Size="9"/> <Property Id="34" Name="Brace match" Bold="yes" Face="" Colour="#FFFF00" BgColour="white" Size="9"/> <Property Id="35" Name="Brace bad match" Bold="yes" Face="" Colour="red" BgColour="white" Size="9"/> <Property Id="37" Name="Indent Guide" Bold="no" Face="" Colour="#C0C0C0" BgColour="#FFFFFF" Size="9"/> </Properties> </Lexer>
6. Re: CodeLite
- Posted by jeremy (admin) Jun 06, 2009
- 1780 views
The problem I get is that Opera complains that it is invalid XML. The problem is that
the comment should appear after the <?xml ...?> line, which should be the first line.
So the parser can tell what sort of file data follows.
Opps. Thanks Derek. I fixed it on the server. http://jeremy.cowgar.com/files/lexer_euphoria.xml
Jeremy
7. Re: CodeLite
- Posted by vmars Jun 06, 2009
- 1857 views
- Last edited Jun 07, 2009
Please; I don't understand . How is this lexer used? Thanks! ...Vern
8. Re: CodeLite
- Posted by jeremy (admin) Jun 06, 2009
- 1748 views
- Last edited Jun 07, 2009
Please; I don't understand . How is this lexer used? Thanks! ...Vern
I'm sorry. I mean to say where to put the file. On Windows, place it in C:\Program Files\CodeLite\lexers\Default. Then restart codelite. Now when you open a Euphoria file, it should have syntax highlighting.
Jeremy
9. Re: CodeLite
- Posted by useless Jun 07, 2009
- 1739 views
Ok, i installed, installed the lexer code, it's a much smaller window than Textpad, so what makes it better?
useless
10. Re: CodeLite
- Posted by jeremy (admin) Jun 07, 2009
- 1739 views
Ok, i installed, installed the lexer code, it's a much smaller window than Textpad, so what makes it better?
Kat, I don't know...
I have not played with it much, just long enough to write the xml euphoria definition and to see that it seems like a capable system.
Jeremy