Post Reply

[PLUGIN][GEANY] Edify Syntax Highlighter

12th January 2014, 09:26 AM   |  #1  
OP Senior Member
Thanks Meter: 2,476
 
1,125 posts
Join Date:Joined: Sep 2012
Hi,

Yesterday, an article featured the XDA Portal, talking about a new "code editor" for the Edify language. I wasn't much interested in it, because:
1. Windows, duh!
2. Porting ROMs (which I seldom do, though), or editing updater script, I use Linux.
3. Why a new editor, when language support can be added easily to *most* of the editors? This limits user functionality, the way user had been interacting with software, and would be missing out high on features :rolleyes:

So, I decided to add edify syntax highlighting support to the popular text editor, Geany (yes, I don't use Gedit, and hate it. Period.).

Here's how you'd go about doing this one ;)

All changes are perfectly revertible, so, you won't have to risk reinstalling Geany :fingers-crossed:

First, copy your filetype_extensions.conf to your home folder using the following command:

Code:
cp /usr/share/geany/filetype_extensions.conf ~/.config/geany/
Open it up, and add the following line, (below "Docbook=*.docbook;" preferably, to maintain alphabetical order):
Code:
Edify=*updater-script*;
Download the following file: https://raw.github.com/thewisenerd/e...pes.Edify.conf

And place it within your ~/.config/geany/filedefs/ folder.

Hopefully, those are all the changes that need to be done :)

Close Geany, and open up any updater-script file, and hopefully, you should have syntax highlighting :laugh:


XDA:DevDB Information
[PLUGIN][GEANY] Edify Syntax Highlighter, a Tool/Utility for the Android General

Contributors
thewisenerd

Version Information
Status: Testing

Created 2014-01-12
Last Updated 2014-05-01
The Following 12 Users Say Thank You to thewisenerd For This Useful Post: [ View ]
12th January 2014, 09:26 AM   |  #2  
OP Senior Member
Thanks Meter: 2,476
 
1,125 posts
Join Date:Joined: Sep 2012
Info 2 Reserved
Screenshot:
Attached Thumbnails
Click image for larger version

Name:	screencap.png
Views:	1553
Size:	177.9 KB
ID:	2510585  
Last edited by thewisenerd; 12th January 2014 at 09:49 AM.
The Following User Says Thank You to thewisenerd For This Useful Post: [ View ]
12th January 2014, 09:26 AM   |  #3  
OP Senior Member
Thanks Meter: 2,476
 
1,125 posts
Join Date:Joined: Sep 2012
Reserved
Credits:

Referenced changes from: http://go-lang.cat-v.org/text-editors/geany/

Got edify keywords from: http://forum.xda-developers.com/wiki...cript_language


P.S. This can be used with windows too. Voila! the power of Geany (and its open souce) :D
Last edited by thewisenerd; 12th January 2014 at 09:44 AM.
The Following 3 Users Say Thank You to thewisenerd For This Useful Post: [ View ]
12th January 2014, 03:55 PM   |  #4  
v_superuser's Avatar
Senior Member
Flag Jammu
Thanks Meter: 1,375
 
483 posts
Join Date:Joined: Jan 2013
Donate to Me
More
Angry
Works Great! Thanks!
19th January 2014, 09:58 PM   |  #5  
Junior Member
Thanks Meter: 1
 
14 posts
Join Date:Joined: Feb 2013
Nice Work Sir!...
19th January 2014, 09:59 PM   |  #6  
LuigiBull23's Avatar
Recognized Contributor
Flag Holyoke
Thanks Meter: 5,400
 
5,582 posts
Join Date:Joined: Jan 2013
Donate to Me
More
Appreciate the hard work!
20th January 2014, 01:36 AM   |  #7  
OP Senior Member
Thanks Meter: 2,476
 
1,125 posts
Join Date:Joined: Sep 2012
Talking
Thanks guys!

This made my day :')
21st January 2014, 01:27 AM   |  #8  
Ricky Divjakovski's Avatar
Recognized Contributor
Flag Sydney
Thanks Meter: 5,292
 
3,588 posts
Join Date:Joined: Feb 2013
Donate to Me
More
any chance of a notepad++ plugin? would be sweet!
good job! and @henrylife use this for your syntax errors!
21st January 2014, 03:08 PM   |  #9  
OP Senior Member
Thanks Meter: 2,476
 
1,125 posts
Join Date:Joined: Sep 2012
Info 2
Quote:
Originally Posted by ricky310711

any chance of a notepad++ plugin? would be sweet!
good job! and @henrylife use this for your syntax errors!

I don't really know. I'd have to get Windows installed first, then, get to research on Notepad++
21st January 2014, 09:35 PM   |  #10  
Ricky Divjakovski's Avatar
Recognized Contributor
Flag Sydney
Thanks Meter: 5,292
 
3,588 posts
Join Date:Joined: Feb 2013
Donate to Me
More
Quote:
Originally Posted by thewisenerd

I don't really know. I'd have to get Windows installed first, then, get to research on Notepad++

virtual box

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Software and Hacking General [Developers Only] by ThreadRank