You are not logged in.

#1 2014-09-23 19:50:20

lucacerone
Member
From: Spain
Registered: 2012-05-04
Posts: 144
Website

[SOLVED] Associate extensions to syntax highlights pluma/gedit

Hi,
I am trying to make pluma/gedit use the SQL syntax highlight by default, when I open or create a file
with extension .hql (hive).

I think I added correctly the mime for hql file, but it still doesn't work.
Can you help me with this issue?
(also if there is an hive syntax highlighter for pluma it is even better, but for the moment I would be happy just to highlight it as an Sql file).

Thanks a lot in advance for the help,
Cheers,
Luca

Last edited by lucacerone (2014-12-10 11:50:17)

Offline

#2 2014-12-10 11:08:52

Krzysztof
Member
Registered: 2014-12-10
Posts: 1

Re: [SOLVED] Associate extensions to syntax highlights pluma/gedit

Hi,

go to:
/usr/share/gtksourceview-3.0/language-specs
edit sql.lang:
sudo gedit sql.lang
go to line 27 and change
<property name="globs">*.sql</property>
to
<property name="globs">*.sql;*.hql</property>

and restart gedit. Worked for me (Ubuntu 14.04 LTS)

Cheers

Offline

#3 2014-12-10 11:49:47

lucacerone
Member
From: Spain
Registered: 2012-05-04
Posts: 144
Website

Re: [SOLVED] Associate extensions to syntax highlights pluma/gedit

Thanks Krystztof! This worked like a charm!

Offline

Board footer

Powered by FluxBB