The GNU of Life, the Universe and Everything

December 17, 2011

Lpsolve Syntax Highlight for Geany IDE

Filed under: Geany — Tags: , , , , , , , — Pedro Carvalho @ 12:50 am

Add Lp Solve extension

Lp solve files Syntax highlight for Geany

An example of Lp solve files Syntax highlight in Geany

First, we need to add the extension file, so geany knows what file it can associate to lp solve files.

Either go to:  Tools -> Configuration Files -> filetype_extensions.conf

or:  edit directly the file in

Linux: ~/.config/geany/filetype_extensions.conf

Windows 7 :  c:\Users\username\AppData\Roaming\geany\filetype_extensions.conf

and add a new line with

Lpsolve=*.lp;

Download Lp Solve syntax highlight file

Next, download this syntax highlight file:  filetypes.Lpsolve.conf

and place it in ~/.config/geany/filedefs/ (Linux)

or c:\Users\username\AppData\Roaming\geany\filedefs\ (Windows 7)

More information on syntax highlight

Note:  if not bothered to download this file, you can add the extension to any existing filetypes, for example:

C=*.c;*.h;*.lp;

Many thanks to geanycolourscheme.xtreemhost.com editor.

August 7, 2010

Make Emacs pretty with beautiful fonts

Filed under: emacs — Tags: , , , , — Pedro Carvalho @ 4:22 am

Over the years i’ve been trying to make emacs more readable, harmonizing it with the desktop themes. i dislike long lines and scrolling up and down so a small readable font is very important.

So here’s the evolution emacs had today:
left-top: default emacs 23
right-top : old
left-bottom : default with –font “Bitstream Vera Sans Mono-10″ -q
right-bottom : default –font “Inconsolata-11″ -q
Pretty emacs with beautiful fonts

here’s the complete images, side by side:
Pretty emacs with beautiful fonts

So the lines fit on the 80columns, there’s plenty of lines shown and the font is beautiful.

I’ve used alot of fonts over the time, but the best font right now is Inconsolata font, created by Raph Levien, with the suport from the TeX Users Group Development Fund. It has so many gorgeous details like the curved t, and the g. oh, i’m in love :) Find out more about Inconsolata font!

i’m happy! oh, just in case, here’s my .emacs after a heavy purge!

.emacs

June 30, 2007

lolcode syntax highlight for nano

Filed under: lolcode, nano — Tags: , , , , — Pedro Carvalho @ 9:59 pm

I always get a few laughts when i visit a lol* site. Today i stumble upon lolcode! oh the joy!
lolcode
so, since i’m writing an article about bash and things related, i decided to create a lolcode syntax highlight for nano so i could grasp teh language!
(more…)

June 23, 2007

Nano – Shortcuts, syntax highlight and nanorc config file – pt1

Filed under: nano — Tags: , , , , — Pedro Carvalho @ 8:02 pm

I have been using nano as my favorite console editor (i use emacs/kate for the rest) for some time now. It’s simplicity, the speed and usefulness of it made it what it is. But recently, i’ve been trying to find out more features that i might been missing. One of those were the shortcuts. The other was syntax highlighting! Meanwhile, the things i discovered!
(more…)

Nano – Shortcuts, syntax highlight and .nanorc config file – pt2

Filed under: nano — Tags: , , , , — Pedro Carvalho @ 7:36 pm

And now, let’s look at the .nanorc file.

Here, i’ll go through the .nanorc config file, try to explain parts of it and set the syntax highlight on.
See the first part for shortcuts .
(more…)

Theme: Shocking Blue Green. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.