[PLUGIN][GEANY] Edify Syntax Highlighter

Search This thread

thewisenerd

Senior Member
Sep 27, 2012
1,385
2,996
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/edify_geany/master/filedefs/filetypes.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
 

thewisenerd

Senior Member
Sep 27, 2012
1,385
2,996
Reserved

Screenshot:
attachment.php
 

Attachments

  • screencap.png
    screencap.png
    177.9 KB · Views: 2,720
Last edited:
  • Like
Reactions: v_superuser

Freewaymad

Member
Dec 19, 2013
39
1
Hi,

I just wanted to let you know the link for the Edify.config:

https://raw.github.com/vineethraj49/...pes.Edify.conf

seems to be dead. If you use:

https://github.com/v-superuser/edify_geany

and download as a .zip. Unzip and open the "edify_geany-master" folder.
Copy the "filetype_extensions.conf" and replace the file with the same name in the ".config/geany/" .
Next go back into the "edify_geany-master" folder and go into the "filedefs". Copy the "filetypes.Edify.conf" and pate it into ".config/geany/filedefs".

Open up Geany and go to "Tools". Hit the "Reload Configuration"
Now you are ready to go.:):):):)
 

thewisenerd

Senior Member
Sep 27, 2012
1,385
2,996
Hi,

I just wanted to let you know the link for the Edify.config:

https://raw.github.com/vineethraj49/...pes.Edify.conf

seems to be dead. If you use:

https://github.com/v-superuser/edify_geany

and download as a .zip. Unzip and open the "edify_geany-master" folder.
Copy the "filetype_extensions.conf" and replace the file with the same name in the ".config/geany/" .
Next go back into the "edify_geany-master" folder and go into the "filedefs". Copy the "filetypes.Edify.conf" and pate it into ".config/geany/filedefs".

Open up Geany and go to "Tools". Hit the "Reload Configuration"
Now you are ready to go.:):):):)

fixed that :cyclops:
 
  • Like
Reactions: Freewaymad

Top Liked Posts

  • There are no posts matching your filters.
  • 12
    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/edify_geany/master/filedefs/filetypes.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
    3
    Reserved

    Credits:

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

    Got edify keywords from: http://xdaforums.com/wiki/Edify_script_language


    P.S. This can be used with windows too. Voila! the power of Geany (and its open souce) :D
    1
    Reserved

    Screenshot:
    attachment.php
    1
    Hi,

    I just wanted to let you know the link for the Edify.config:

    https://raw.github.com/vineethraj49/...pes.Edify.conf

    seems to be dead. If you use:

    https://github.com/v-superuser/edify_geany

    and download as a .zip. Unzip and open the "edify_geany-master" folder.
    Copy the "filetype_extensions.conf" and replace the file with the same name in the ".config/geany/" .
    Next go back into the "edify_geany-master" folder and go into the "filedefs". Copy the "filetypes.Edify.conf" and pate it into ".config/geany/filedefs".

    Open up Geany and go to "Tools". Hit the "Reload Configuration"
    Now you are ready to go.:):):):)

    fixed that :cyclops: