Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,739,676 Members 51,293 Now Online
XDA Developers Android and Mobile Development Forum

[PLUGIN][GEANY] Edify Syntax Highlighter

Tip us?
 
thewisenerd
Old
#1  
Senior Member - OP
Thanks Meter 2257
Posts: 1,064
Join Date: Sep 2012
Default [PLUGIN][GEANY] Edify Syntax Highlighter

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:
Select 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:
Select 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: [ Click to Expand ]
 
thewisenerd
Old
(Last edited by thewisenerd; 12th January 2014 at 09:49 AM.)
#2  
Senior Member - OP
Thanks Meter 2257
Posts: 1,064
Join Date: Sep 2012
Info 2 Reserved

Screenshot:
Attached Thumbnails
Click image for larger version

Name:	screencap.png
Views:	1501
Size:	177.9 KB
ID:	2510585  
The Following User Says Thank You to thewisenerd For This Useful Post: [ Click to Expand ]
 
thewisenerd
Old
(Last edited by thewisenerd; 12th January 2014 at 09:44 AM.)
#3  
Senior Member - OP
Thanks Meter 2257
Posts: 1,064
Join Date: Sep 2012
Default 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
The Following 3 Users Say Thank You to thewisenerd For This Useful Post: [ Click to Expand ]
 
v_superuser
Old
#4  
v_superuser's Avatar
Senior Member
Thanks Meter 1242
Posts: 459
Join Date: Jan 2013
Location: Jammu
Works Great! Thanks!


Join the HTC Desire 816 Facebook group for all Development Info and Discussion!
 
jawad6233
Old
#5  
Junior Member
Thanks Meter 1
Posts: 14
Join Date: Feb 2013
Nice Work Sir!...
 
LuigiBull23
Old
#6  
LuigiBull23's Avatar
Recognized Contributor
Thanks Meter 5244
Posts: 5,505
Join Date: Jan 2013
Location: Holyoke

 
DONATE TO ME
Appreciate the hard work!


 
Quote:
ROM: Liquidsmooth v3.0 (Nightly 3/13) ~ LiquidSmooth [Q&A/T]
Kernel: KT-SGS4 ~ Ktweaker Shop / Ktweaker User Guide
Radio: MDL
Recovery: TWRP 2.6.3.0
Mods: Xposed + Greenify + Project Comatose - Rebirthing profile
Andriod Terminology / Development Guide
 
thewisenerd
Old
#7  
Senior Member - OP
Thanks Meter 2257
Posts: 1,064
Join Date: Sep 2012
Thanks guys!

This made my day :')
join #pico for a chat!
 
Ricky Divjakovski
Old
#8  
Ricky Divjakovski's Avatar
Recognized Contributor
Thanks Meter 5209
Posts: 3,590
Join Date: Feb 2013
Location: Sydney

 
DONATE TO ME
any chance of a notepad++ plugin? would be sweet!
good job! and @henrylife use this for your syntax errors!
Like my blog on facebook, add me to your circles, follow me on twitter or donate to me with paypal
 
thewisenerd
Old
#9  
Senior Member - OP
Thanks Meter 2257
Posts: 1,064
Join Date: Sep 2012
Quote:
Originally Posted by ricky310711 View Post
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++
join #pico for a chat!
 
Ricky Divjakovski
Old
#10  
Ricky Divjakovski's Avatar
Recognized Contributor
Thanks Meter 5209
Posts: 3,590
Join Date: Feb 2013
Location: Sydney

 
DONATE TO ME
Quote:
Originally Posted by thewisenerd View Post
I don't really know. I'd have to get Windows installed first, then, get to research on Notepad++
virtual box
Like my blog on facebook, add me to your circles, follow me on twitter or donate to me with paypal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes