The online racing simulator
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 'Language' Tab
  • Click on 'Define your language'
  • 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
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 'Languages' Tab
  • -Click on 'Define your language'
  • -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 - 1158 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
Hi Andy,

The Tab is named: 'Language'
Then goto 'Define your Language'

'Syntaxis' is how it is named in the dutch version. Not sure how it is named in other languages.

I have edited my and the first post in the Lapper Syntax Highlighting topic.
Hi Guys I'm sorry to be a pain but its asking for a .xml file to import and the file downloaded isn't.

Thanks

Andy
Try this one.

Atm i use a dark theme, so i dont have the old one anymore.
so i quick made a language file.


i might share the dark theme aswell. But i have to figure out how i got it LOL.
Attached images
darktheme.png
Attached files
LFSLapperV1,1.zip - 1.1 KB - 1016 views
Hi Guys does anyone had the EditPlus Syntax Highlighting file please.

Andy
Cheers Yisc works perfectly thanks

Andy

FGED GREDG RDFGDR GSFDG