ok, got gEdit fully working with integrated compiling! here's how I did it:
First, I installed gEdit's external tools using "sudo apt-get install gedit-plugins",
Then added the pbp.lang file to /usr/shared/gtksourceview-2.0/language-specs/
You need to close out of all gEdit windows at this time and restart it to get the new language to show up.
Finally, I went to gEdit and went to Tools/Manage External Tools, and created an entry called Compile PBP code, and added this into the codebox at the right:
Then finally clicked on the save option in the external tools manager and clicked "current document". Click close out of the external tools options and when your ready to compile your code, just go to tools/external tools/Compile PBP code, and it'll compile everything just right.#!/bin/sh
wine c:/pbp/pbpw -e -s -ac:/Program Files/Microchip/MPASM Suite/MPASMWIN -p12f675 $GEDIT_CURRENT_DOCUMENT_NAME
var=$GEDIT_CURRENT_DOCUMENT_NAME
var2=${var%???}
outasm=$var2"ASM"
wine c:/Program\ Files/Microchip/MPASM\ Suite/mpasmwin /e /l $outasm
Just make sure you change the -12f675 to whatever PIC your using tho and it should work flawlessly. Here's the file again to keep everything organized:
pbp.lang.zip
Ps. mackrackit, using this requires no more premade batch files :P
Bookmarks