Extra syntax highlighting for MaxIDE 1.26
BlitzMax Forums/BlitzMax Programming/Extra syntax highlighting for MaxIDE 1.26
| ||
Heres a patch that adds syntax highlighting to Int/Float/Hex numbers and Operators (+-*/= etc) and also options for them. extra_syntax_highlight.patch If you have MingW installed the patch can be applied to maxide.bmx by doing this in a terminal: cd "c:\program files\blitzmax\src\maxide" patch -i extra_syntax_highlight.patch -o maxide_extra.bmx maxide.bmxthis creates a new file "maxide_extra.bmx" with the changes. Otherwise you can read the patch file and modify your copy manualy ;) The Operator highlighting can slow down the highlighting on big files, so it can be disabled by setting the color the same as normal text (PlainText in options) EDIT: patch is working =) |
| ||
There was a bug in my code. Sorry about that, its fixed now. A screenshot for the lazy =) ![]() |
| ||
Great, thank you. |
| ||
no problem =) .. btw i added some missing operators.. ! $z $w |
| ||
Looks great, but do you know if it is possible to run the patch file from a mac? (don't feel like doing it manually :P) |
| ||
Should work as long as you have the usual development tools installed. |
| ||
The dialog always shows yellow as color for numbers and operators and the preview is broken (look at the screen): ![]() Patching didn't work. It comes up with some errors but unpacked the code file wich could be compiled as the whole IDE. (btw, this isn't a real Mac, just a WindowBlinds theme...) |
| ||
Hmm.. i have no idea why it doesnt work, im running the same patch. But if the patch failed somehow, thats probably it. What errors specificly? did you edit your copy beforehand? I could upload the whole source or executable though, but im not sure if im allowed to do that? |
| ||
I'm sorry, but I didn't edit my copy of maxide or your patch. This is the patchers errormessage: patching file maxide.bmx Hunk #7 FAILED at 1012. 1 out of 10 hunks FAILED -- saving rejects to file maxide_extra.# Btw., klepto2 gets the same message as I did. Maybe it's an issue on german systems or something like that. Why shouldn't it be allowed to distribute the whole source? MaxIDE-CE was made out of it. |
| ||
Sorry for taking so long, i forgot :( Anyways, i found out why the patching failed in some instances. its because i used MaxIDE to edit the source and it changed the case of every keyword (some are in lower case in the original). This new patch works only on the original untouched file: (1.128, dunno if there are any changes) extra_syntax_highlight.patch or for those without patch maxide_ex.rar |
| ||
Will this also highlight TImage, TImageFont, and the others that aren't highlighted? |
| ||
No, only INT, FLOAT, HEX and Operators. To get more keywords highlighted either edit your commands.txt or make a separate module with only keyword definitions. |