Git Product home page Git Product logo

geany_prettify's Introduction

Geany Prettify

Source code prettifier plugin for Geany.

Features

  • Prettifies source code files with the following extensions :
    • PHP : php.
    • HTML : html, htm, xml, twig.
    • CSS : css, less, pepss, sass, scss, styl.
    • JavaScript : js, json.
    • C : c, h.
    • C++ : cxx, hxx, cpp, hpp.
    • D : d.

Installation

Install the Prettify command line tool.

Build the plugin with the following command lines :

sudo apt update
sudo apt install geany geany-common geany-plugins geany-plugins-common libgtk-3-dev intltool
gcc -O3 -c geany_prettify.c -fPIC `pkg-config --cflags geany`
gcc -O3 geany_prettify.o -o geany_prettify.so -shared `pkg-config --libs geany`

Set the plugin folder path in Geany's startup preferences.

Enable the plugin.

Set the Prettify path in the plugin preferences.

Usage

Use the Prettify option in the Tool menu.

Version

1.0

Author

Eric Pelzer ([email protected]).

License

This project is licensed under the GNU General Public License version 3.

See the LICENSE.md file for details.

geany_prettify's People

Contributors

ecstaticcoder avatar senselogic avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

geany_prettify's Issues

geanyplugin.h: No such file

geany_prettify.c:41:10: fatal error: geanyplugin.h: No such file or directory
41 | #include <geanyplugin.h>
| ^~~~~~~~~~~~~~~

Compilation error

gcc -O3 -c geany_prettify.c -fPIC pkg-config --cflags geany``

geany_prettify.c: In function ‘plugin_init’: geany_prettify.c:318:5: warning: ‘gtk_image_menu_item_new_with_mnemonic’ is deprecated: Use 'gtk_menu_item_new_with_mnemonic' instead [-Wdeprecated-declarations] MenuWidget = gtk_image_menu_item_new_with_mnemonic( _( "_Prettify" ) ); ^~~~~~~~~~ In file included from /usr/include/gtk-3.0/gtk/gtk.h:265:0, from /usr/include/geany/gtkcompat.h:26, from /usr/include/geany/editor.h:28, from /usr/include/geany/document.h:32, from /usr/include/geany/build.h:27, from /usr/include/geany/geanyplugin.h:37, from geany_prettify.c:41: /usr/include/gtk-3.0/gtk/deprecated/gtkimagemenuitem.h:82:12: note: declared here GtkWidget* gtk_image_menu_item_new_with_mnemonic (const gchar *label); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.