New syntax highlighting for gedit
21 Apr 2016 04:37 #73674
by FernV
New syntax highlighting for gedit was created by FernV
Hi,
For those of you that prefer using gedit, I wrote a new HL file for you.
Just copy ngc.lang.txt file to either (REMOVE THE .txt EXTENSION)
/usr/share/gtksourceview-3.0/language-specs/
or
~/.local/share/gtksourceview-3.0/language-specs/ (you can also use 2.0 instead)
and GCode.xml (colors) in
/usr/share/gtksourceview-3.0/styles/
or
~/.local/share/gtksourceview-3.0/styles/
then restart gedit, open a ngc file and select GCode color scheme
here what it looks like
If you do not like the colors I selected, try to find a scheme you like or edit GCode.xml by inspecting ngc.lang to see how colors are mapped
Best regards
Fernand
For those of you that prefer using gedit, I wrote a new HL file for you.
Just copy ngc.lang.txt file to either (REMOVE THE .txt EXTENSION)
/usr/share/gtksourceview-3.0/language-specs/
or
~/.local/share/gtksourceview-3.0/language-specs/ (you can also use 2.0 instead)
and GCode.xml (colors) in
/usr/share/gtksourceview-3.0/styles/
or
~/.local/share/gtksourceview-3.0/styles/
then restart gedit, open a ngc file and select GCode color scheme
here what it looks like
If you do not like the colors I selected, try to find a scheme you like or edit GCode.xml by inspecting ngc.lang to see how colors are mapped
Best regards
Fernand
The following user(s) said Thank You: BigJohnT, andypugh, chucktilbury, Amedee, webmanoffesto, Studi
Please Log in or Create an account to join the conversation.
22 Apr 2016 22:19 #73731
by BigJohnT
Replied by BigJohnT on topic New syntax highlighting for gedit
I'm using Gedit on LinuxMint 17.3 but don't see the directories you mention.
JT
JT
Please Log in or Create an account to join the conversation.
23 Apr 2016 08:27 #73738
by Amedee
Replied by Amedee on topic New syntax highlighting for gedit
I don't have Mint, but i believe it is shipped with GTK2 so you need to look for /usr/share/gtksourceview-2.0/ directory
Please Log in or Create an account to join the conversation.
23 Apr 2016 11:32 - 23 Apr 2016 11:51 #73744
by BigJohnT
Replied by BigJohnT on topic New syntax highlighting for gedit
Last edit: 23 Apr 2016 11:51 by BigJohnT.
Please Log in or Create an account to join the conversation.
23 Apr 2016 13:01 - 23 Apr 2016 13:02 #73749
by Amedee
Replied by Amedee on topic New syntax highlighting for gedit
Last edit: 23 Apr 2016 13:02 by Amedee.
The following user(s) said Thank You: BigJohnT
Please Log in or Create an account to join the conversation.
23 Apr 2016 14:26 #73757
by BigJohnT
Replied by BigJohnT on topic New syntax highlighting for gedit
Now that looks much better and I even like it!
JT
JT
Please Log in or Create an account to join the conversation.
- webmanoffesto
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
19 May 2016 17:07 #74856
by webmanoffesto
Replied by webmanoffesto on topic New syntax highlighting for gedit
It's working great for me. Thank you.
Please Log in or Create an account to join the conversation.
07 Nov 2020 10:01 #188582
by Studi
Replied by Studi on topic New syntax highlighting for gedit
hello FERN
got it installed. Works as promised.
Thank you so much! :Lachen:
Tip: For Windows users
the path to the directories is called here:
Storage location of the program then \ share \ gtksourceview-2.0 \ language-specs
for the file: ngc.lang
and
Storage location of the program then \ share \ gtksourceview-2.0 \ styles for the file: GCode.xml
got it installed. Works as promised.
Thank you so much! :Lachen:
Tip: For Windows users
the path to the directories is called here:
Storage location of the program then \ share \ gtksourceview-2.0 \ language-specs
for the file: ngc.lang
and
Storage location of the program then \ share \ gtksourceview-2.0 \ styles for the file: GCode.xml
The following user(s) said Thank You: rootboy
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 18757
- Thank you received: 6306
02 Jan 2024 01:52 #289521
by tommylight
Replied by tommylight on topic New syntax highlighting for gedit
Spammer booted.
Please Log in or Create an account to join the conversation.
Time to create page: 0.140 seconds