Skip to content

satyajitc/gedit3-codefolding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gedit3-codefolding

This plugin adds code folding support to gedit 3.x. It supports several (meaning more than 1) languages. Note that this plugin is not compatible with gedit 2.x.

Features

Besides folding indivudual blocks by clicking the respective block start markers on the left margin, two other operations are supported either from the Tools menu or from the keyboard like this

  • Alt+Shift+T: Toggle all blocks
  • Alt+Shift+C: Fold current block

Suported languages

  • C/C++
  • CSS
  • Graphviz Dot
  • Java
  • Javascript
  • JSON
  • Lua
  • Objective-C
  • Perl
  • Prolog
  • R
  • Ruby
  • sh
  • Scheme
  • SQL
  • XML

Installation

Copy both the files from the src directory of this repo & place in .local/share/gedit/plugins directory.

Screenshots

Please note that most of the exmaple code in the screenshots are taken from the public domain. I apologize if I am not respecting someone's copyright here.

Java

alt tag

Javascript

alt tag

Notes

  • Code folding is dependent on properly formatted blocks of code. If the folding behaves erratic try reformatting the code
  • A simple way of reformatting to facilitate folding is to have block start and end constructs in seperate individual lines
  • A light color scheme works best (actually dark schemes don't show the markers at all) with this plugin, for now

License

Permission to copy, use, modify, sell and distribute this software is granted. 
This software is provided "as is" without express or implied warranty, and with no claim as to its suitability
for any purpose.

About

Code folding plugin for gedit 3.x

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages