Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
gedit for Drupal developer
branch: master

This branch is 34 commits behind mavimo:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
DEBIAN
.gitignore
README
SNIPPET_LIST
application-x-drupal-php.svg
application-x-drupal-tpl-php.svg
drupal-theme.mime.xml
drupal.lang
drupal.mime.xml
drupal.xml
drupal.xslt
drupalapi.gedit-plugin
drupalapi.png
drupalapi.py
make_deb.sh
mkmodule

README

This project contains Snippet for getid to have a rapid development for Drupal devel

= INSTALLATION =================================================================

  a)  Create a new folder and clone repository on your machine:

        # mkdir gedit-drupal
        # cd gedit-drupal
        # git init
        # git clone git://github.com/mavimo/gedit-drupal.git

  b)  Copy language definition into /usr/share/gtksourceview-2.0/language-specs/

        # sudo cp drupal.lang /usr/share/gtksourceview-2.0/language-specs/

  c)  Create a new mimetype into your machine

        # sudo cp drupal.mime.xml /usr/share/mime/packages/drupal.mime.xml
        # sudo cp drupal-theme.mime.xml /usr/share/mime/packages/drupal.mime.xml

  d)  Update mimetype database

        # sudo update-mime-database /usr/share/mime

  e)  Add icon into your icons folder, first of all find your iconset name 
      (gnome, Tangerine, ..), and copy into this folder (on scalable subfolder)
      icon file:
      
        # sudo cp application-x-drupal-php.svg /usr/share/icons/ICONSET_NAME/scalable/mimetype/application-x-drupal-php.svg
        # sudo cp application-x-drupal-tpl-php.svg /usr/share/icons/ICONSET_NAME/scalable/mimetype/application-x-drupal-php.svg
      
      after that regenerate iconset cache:
      
        # cd /usr/share/icons
        # sudo gtk-update-icon-cache ICONSET_NAME

  f)  Enable Snippet plugin from

        Edit -> Preferences -> Plugins

      If not already aviable please install it from your distrubution system, for 
      debian / ubuntu system use:

        # sudo apt-get install gedit-plugins

  g)  Add variuos snippets

        Tools -> Manage Snippets ...

      Press "Import snippets" button (second from left on bottom) and import *.xml file
      do you require. After that you can use drupal-snippet

= USAGE ========================================================================

Using Snippet is very simple, when you write a drupal module or install file 
please select, from View -> Highlight Mode -> Scripts -Drupal, and now you can
write your code with snippet accelerator, a complete list of snippet is aviable
on file SNIPPET_LIST
If you create new mimetype to you machine is not required set Highlight Mode, sistem
automatically detect it.
Something went wrong with that request. Please try again.