The online racing simulator
Lapper Syntax Highlighting for Code/Text Editors
(16 posts, started , go to first unread)
Lapper Syntax Highlighting for Code/Text Editors
I make custom syntax highlight definitions for text editors.

When you write your .lpr addon, you need to add begin/end points, like php. At the very very top of your document, put "#LPR", at the very very end, put "##LPR". This will not alter your program in any way because # is just a comment in Lapper. When you do that, you should be greeted with lovely formatted colors.

To install:


Gedit
  • Linux: put "lapper.lang" in /usr/share/gtksourceview-3.0/language-specs
  • Windows: Put "lapper.lang" in C:\Program Files\gedit\share\gtksourceview-3.0\language-specs\
EditPlus
  • Windows: Put "lapper.acp" and "lapper.stx" in the directory you installed EditPlus
  • Open your settings and go to syntax
  • Click "add" and navigate to the correct files for auto complete & highlighting
  • Click apply & ok
Notepad++
  • Save the file anywhere you like.
  • Start NotePad
  • Goto 'Syntaxis' Tab
  • Click on the 'import' button
  • And goto the folder you saved the file and load it into NotePad++
PSPad
  • Copy the lapper.ini in (Path where you installed PSPad)...\PSPad editor\Syntax . ( default is C:\Program Files\PSPad editor\Syntax )
  • Open PSPad and under Settings - Highlighters setting click on <not assigned> and select on the right side lapper and Apply
Changelog

Gedit
  • v1.2
  • Added "Event" and "EndEvent" definitions
  • v1.1
  • Added "Lang" and "EndLang" definitions
  • v1.0
  • Initial version.
EditPlus
  • v1.0
  • Initial version. Auto completion doesn't work right now
Notepad++
  • v1.0
  • Initial version. Credit to Bass-Driver for this syntax
PSPad
  • v1.0
  • Initial version. Credit to Tim NL for this syntax
Attached files
lapper_editplus_v1.0.zip - 969 B - 9 views
lapper.lang.zip - 1.8 KB - 8 views
lapper_gedit_v1.1.zip - 1.8 KB - 6 views
lapper_gedit_v1.2.zip - 1.8 KB - 7 views
lapper_notepadplusplus_v1.0.zip - 925 B - 7 views
lapper_pspad_v1.0.zip - 509 B - 5 views
Thanks for sharing.
Personally i use NotePad++ for LFSLapper scripting with custom syntax highlighting.

I might share that as well soon.
I am coding Lapper with EditPlus (also write HTML and PHP with that when building sites).
No highlighting in there (for Lapper), but I don't mind that Smile
Quote from Yisc[NL] :I am coding Lapper with EditPlus (also write HTML and PHP with that when building sites).
No highlighting in there (for Lapper), but I don't mind that Smile

I use gedit for all my web development (and soon lapper). I like it because of the simplicity. No auto tag completion, no fancy anything. Just syntax coloring and automatic indents.
Hmm.... Wonder if there is a market for custom syntax highlighting. I could just start writing it for many programs. Including EditPlus
Yisc[NL] I've added a syntax file for the editor you use, EditPlus.
Quote from Bass-Driver :Thanks for sharing.
Personally i use NotePad++ for LFSLapper scripting with custom syntax highlighting.

I might share that as well soon.

If you shared it, I could just add it to this post and credit you. Maybe this could be the mega thread for custom syntax highlighting in editors.
Thanks for the files for EditPlus.

I've placed them into: C:\Users\[USERNAME]\AppData\Roaming\EditPlus
Then I opened 'Preferences' in EditPlus and went to 'Settings & syntax'
Pressed "Add..." and created 'Lapper' as File type.
I added 'lpr' in the "File extensions" box and then linked the stx and acp file to this newly created file type.
As soon as I hit 'Apply' the syntax came alive.

Attached images
Capture.PNG
Quote from Yisc[NL] :Thanks for the files for EditPlus.

I've placed them into: C:\Users\[USERNAME]\AppData\Roaming\EditPlus
Then I opened 'Preferences' in EditPlus and went to 'Settings & syntax'
Pressed "Add..." and created 'Lapper' as File type.
I added 'lpr' in the "File extensions" box and then linked the stx and acp file to this newly created file type.
As soon as I hit 'Apply' the syntax came alive.


Cool right? Tongue
Here is my custom syntax highlighting for NotePad++.
This is based on the C# syntax.

How to use:
  • -Save the file anywhere you like.
  • -Start NotePad
  • -Goto 'Syntaxis' Tab
  • -Click on the 'import' button
  • -And goto the folder you saved the file and load it into NotePad++
The colored text is less dark than on this picture.
Attached images
NotePad++_01.jpg
Attached files
LFSLapper.zip - 925 B - 8 views
Added Bass-Driver's Notepad++ syntax.

Updated gedit syntax
Ignore gedit 1.2.

Turns out Event/EndEvent were replaced by CatchEvent/EndCatchEvent
Added Tim NL's PSPad Syntax
Quote from Bass-Driver :Here is my custom syntax highlighting for NotePad++.

Huge THANK YOU for this. Was always too lazy to make one Smile

BTW: I use Notepad++ v7.4.2 and I don't have any "Syntaxis" tab in there. Instead I added .xml extension to the zipped "LFSLapper" file and then went to Language > Define your language...(oh or do you mean this as a Syntaxis tab? In that case I still had to rename to .xml to be able to import it) and then imported "LFSLapper.xml", restarted Notepad and all works fine.
i use the dutch version of Notepad++. Dont know what the names are in other languages Tongue

Lapper Syntax Highlighting for Code/Text Editors
(16 posts, started )
FGED GREDG RDFGDR GSFDG