Blitzmax style and syntax highlighting for Notepad++

Started by GW, September 30, 2024, 22:33:08

Previous topic - Next topic

GW

Here is a custom language definition for Blitzmax for notepad++.  This will make npp highlight all the keywords and properly color comments.
You'll probably want to customize the colors to your taste, but by default the background color for this theme should be #2C2C2C (rgb 44,44,44) which is not included in the file.  Place the file in the directory
  C:\Users\{you}\AppData\Roaming\Notepad++\ . You may need to use the import function from the 'define your language' submenu.



Another note, npp can't properly handle blitzmax block comments (rem/endrem). So you will need to install one of the plugins called 'EnhanceAnyLexer'.  Follow the instructions for that plugin and add the line:
0xffff00[3, 6] = (?s)^rem.*?endrem
That will allow block comments to properly get captured.




Baggey

Running a PC that just Aint fast enough!? i7 4Ghz Quad core 24GB ram 1TB SSD and NVIDIA Quadro K1200 . DID Technology stop! Or have we been assimulated!

ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. Im Misunderstood!

Derron

a block comment can be

rem
endrem

but also
rem
end rem

(same for endfunction vs "end function" etc).


Guess next to syntax highlighting (of known modules and core keywords) you should explain how to do "compile and run" (and also debug compile and run ... and possibly even console, gui, x86, x64, quick compile, ...). Assume this would be what people want to have to do what they else use maxide for (I eg use it only for debugging).

bye
Ron