Ubuntu :: Adding New Syntax In Gedit For GAMS?

Jun 5, 2010

I've been trying to extend gedit with a syntax highlighting capability for GAMS (http:url....). I googled about it and could only find it for vim and I didn't quite like it.Here's what I've done:

(1) I created a file "gams.lang" and placed it in "/usr/share/gtksourceview-2.0/language-specs/"

(2) I created a file "gams.xml" and placed it in "~/.local/share/mime/packages"

(3) I ran the command "update-mime-database ~/.local/share/mime/"

I observed that a test file names "test.gms" was correctly identified as a GAMS source file when I opened it in gedit; however, no highlighting is done.I believe there must an error in my gams.lang file,The files are given below:

"gams.lang"

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!--[code]......

View 5 Replies


ADVERTISEMENT

Ubuntu :: Gedit Syntax Highlighting Not Working Under Home Dir

Nov 9, 2010

I've been battling with this weird problem for a while now and since I can't seem to find a decent answer I'm hoping one of you guys can steer me in the right direction. The problem is simple... syntax highlighting is not working consistently on ".rb" files.

My user name on my Ubuntu 10.04 LTS is jean-marc. So if I do
touch /home/jean-marc/testing.rb
and then
gedit /home/jean-marc/testing.rb
The file comes up as "Plain Text"

If I copy the file into /tmp/ and do gedit /tmp/testing.rb
the file comes up as "Ruby"
If I do
gedit /home/jean-marc/afile.rb
and the file does not exists the file comes up as "Ruby"

If I manually set the Syntax Highlight mode on my file gedit seems to remember it. Since most of the files are generated through scripting they all come as "Plain Text" and it's definitely not the best way to edit them. Also, the files, no matter where they are show up as "Ruby script (application/x-ruby)" when showing the attributes through nautilus. Now, before someone tells use, use this software or that software instead of gedit, well I'm happy with the tool and its plugins. I'm efficient with it and I'd rather stick to it.

View 4 Replies View Related

Software :: Convert A TextPad Syntax Definition To Gedit?

Jun 25, 2010

There is anyone here that can say if there is an application that could convert a TextPad Syntax Highlighting File(*.syn) to Gedit one(*.xml), or anyone here that is interested to convert this?

Here is the file that I want to be converted: ARM Assembly

View 3 Replies View Related

Ubuntu :: Gedit Adding Rtf And Doc Support?

Jan 4, 2010

I use gedit for most of my document editing and reading. But if I need to open a document thats in either the rtf or doc format, I end up having to open up OpenOffice (which takes a while on a netbook). Not to mention I have to use up precious disk space with OO.o installed. So I ask, is there anyway to add support for those two documents types?

View 5 Replies View Related

Ubuntu :: Installing Explorer - Command Gedit User.reg (gedit:2573): Gtk-WARNING ** Cannot Open Display

Jan 12, 2010

I am trying to make wine work for explorer. I followed some instructions on this link [URL] To follow this link, I am supposed to

cd ~/ies4linux/ie6
cp user.reg ~/user.reg.old
gedit user.reg

1st and 2nd line went well 3rd line when I try to execute the command gedit user.reg (gedit:2573): Gtk-WARNING ** cannot open display I then /ies4linux/ie6# ls dosdevices(in blue) drive_c(in blue) system.reg(in white) userdef.reg(in green) user.reg

View 3 Replies View Related

OpenSUSE :: Gedit With Sudo - (gedit:7137): Gtk-WARNING : Cannot Open Display

Feb 8, 2010

I set-up my Sudo it works but when I use Gedit I get the following message

Jean-Luc@localhost:~> sudo gedit /etc/fstab
(gedit:7137): Gtk-WARNING **: cannot open display:
samething with /etc/sudoers

If I use vi it's ok, I can modify and save. In Fedora it run ok, but with opensuse?

View 9 Replies View Related

Software :: Scroll One Line Each Time Like Gedit Does When Scrolling In Gedit?

Oct 29, 2010

When scrolling down in nano with keyboard (holding "down" key), nano scrolls several lines at once each time. Is there any possibility to configure it so it will scroll one line each time like gedit does when scrolling in gedit?

View 3 Replies View Related

General :: Can't Open File/abcd/configFiles/vim/syntax/syntax.vim?

Mar 7, 2011

When ever i open vim, i get the error that the following error: E484: Can't open file/abcd/configFiles/vim/syntax/syntax.vim There was a .vimrc file in my home folder that i have removed.

Still i keep getting the same error. Presently in my home folder there is no .gvimrc or .vimrc file.

But still i keep getting the same error. I am not too sure where this file is mentioned.

Background info: The SHELL has been changed from tcsh to bash Earlier i had created a .vimrc file in tcsh, i have removed the .vimrc in bash SHELL.

View 1 Replies View Related

General :: SUSE 10 Syslog-ng Syntax - Bash: Syntax Error Near Unexpected Token "("

Apr 20, 2011

I am a Novell (now defunct) CNE tring to learn Linux and am having a lot of trouble finding out where the WB 6-6 is wrong in the syntax for adding local4... the the syslog-ng config file. In the instructions there are discrepancies between commas and simi-comma, they are both in the statements in no particular order. there is no pattern to them. Here is what the book shows:

filter f_local4debug { level(debug) and facility(local4); };

When I try to input this in the Gnome terminal window to try and find out where it goes wrong I get the following: -bash: syntax error near unexpected token "(" If I can get the correct syntax I belive I can use the info to get past the rest of this portion of the lesson. I am desperate to learn Linux as the only jobs out there for a Novell CNE are migrations to MS, which really sucks, since MS really really sucks.

View 1 Replies View Related

Ubuntu :: How To Get Statistics Under Gedit

Mar 24, 2010

i always use gedit to write and edit text file under ubuntu. However, i cant find the way to get some statistics, like how many times a word presents in the txt file

View 3 Replies View Related

Ubuntu :: Gedit Plugins Won't Install

Feb 10, 2010

I want to install more plugins for gedit, but when I run: Code: sudo apt-get install gedit-plugins I get: Code: 0 upgraded, 0 newly installed, 0 to remove and 213 not upgraded. I keep reading about all of these awesome plugins I have to have and I want to use them. I tried to just download them and add the plugin to the plugin folder, but I got a permission denied error.

View 4 Replies View Related

Ubuntu :: Gedit Not Saving To Sshfs?

May 6, 2010

I just updated to 10.04 from 9.10 and suddenly gedit is saying I don't have permission to save files in an sshfs-mounted directory. Nothing I've found through Google works.

* I'm mounting using `sshfs james@of1-dev-james:/home/james/projects $HOME/projects`

* `fuse` is listed in /etc/modules

* I'm a member of the `fuse` group

* Using `newgrp fuse` before mounting stops gedit from seeing the mounted directory at all.

* /dev/fuse belongs to `root:fuse` and has `crw-rw-rw-` permission.

* Other apps e.g. `nano` have no problem reading/writing to this directory.

View 6 Replies View Related

Ubuntu :: Ssh -X Hangs On Logout When Using Gedit

May 12, 2010

I am using Lucid and am having a problem logging out of a ssh -X connection after I had forwarded an X window during it. I don't know if this is the proper place to be posting such a problem but I can think of nowhere else. Please feel free to redirect me elsewhere.At google's suggestion, I tried redirecting the pipes but that didn't help. I am not sure this helps but I did a verbose output of an example ssh session. I login, open a window, close it without doing anything, and then attempt to logout. It hangs which forces me to use ^c on it.

View 9 Replies View Related

Ubuntu :: Can't Save The File In Gedit?

May 15, 2010

I created the document in gedit and save button is disabled. It says "Changes to document 'Unsaved Document 1' will be permanently lost. saving has been disabled by system administrator"

View 9 Replies View Related

Ubuntu :: Add A Space Between Lines In Gedit?

Jun 2, 2010

know how to add a space between all the lines in a document using gedit? In order for a specific script I have to read each specific line, there must be a space in between them. And my current document has well over 1100 different things, and as such, having to add a space between each one would take awhile by hand.

View 2 Replies View Related

Ubuntu :: Certain Txt Files Won't Open In Gedit

Jun 13, 2010

I have a few .txt files that when opened in gedit give me an error "Could not open the file - gedit has not been able to detect the character encoding" HOWEVER, I can see some of the contents of the files (a few words) in the icon preview in nautilus. Also, I can open these documents in notepad (using wine) though I'd prefer to use gedit.

These might not all be txt files. I know one is directory of important phone numbers that was in some obscure format that could only be opened on a nokia phone.

View 1 Replies View Related

Ubuntu Servers :: Can't Use Gedit On Remote

Jul 2, 2010

I have 8.04 installed on virtual on a remote machine, also I installed apache2. I would like to istatall and configure other things, but I get this:

root@mobix:~# gedit /etc/vsftpd.conf
cannot open display:

Run 'gedit --help' to see a full list of available command line options.

View 5 Replies View Related

Ubuntu :: Turning Off Tabs In Gedit?

Sep 19, 2010

I'd can't seem to find a preference to turn off gedit's default behaviour of opening a new file in a new tab. I'd like it to open in a new window, so I can view two pages of code side by side. How can I convince gedit to open a new instance?

View 2 Replies View Related

Ubuntu :: Gedit: LaTeX To PDF Does Not Work

Oct 18, 2010

I am using the Gedit LaTeX Plugin 0.2 rc3 on ubuntu 10.04 with gedit 2.30.3. The problem is that it will not make pdf files. I do have rubber installed.

[URL]

View 3 Replies View Related

Ubuntu :: Odd Gedit Print Preview?

Oct 24, 2010

I am using Ubuntu 10.10 and have run into a problem recently. When I use print preview in gedit, a "print preview" screen comes up and all of the pages are blank. Sometimes, one or two pages are shown but it is random. This just started to happen when I upgraded to 10.10. I did a fresh install so a partial update would not be an issue.

Are there any ideas what could be wrong? Sorry if this thread exists somewhere else but some google searching and ubuntu fourm searching resulted in nothing.

View 1 Replies View Related

Ubuntu :: Gedit Show Tab Bar Not Working?

Nov 16, 2010

I've been with this problem for ages and finally decided to post. Installed the gedit-plugins package (Version: 2.30.0-1ubuntu1). After enabling Show/Hide Tabbar plugin, and unckecking View-> Tabbar, tabs are still there, anyone knows what may be happening? I'm currently running Ubuntu 10.10 amd64, with gedit version 2.30.3

View 6 Replies View Related

Ubuntu :: Disable Tabs In Gedit?

Dec 19, 2010

Can I disable the tabs in gedit? I want it to behave like notepad in Windows. I found instructions for adding 'open in new window' menu options, but I want whenever I doubleclick on a text file or run 'gedit filename', the file to be opened in a separate window.

View 5 Replies View Related

Ubuntu :: Backing Up A Gedit Configuration?

May 4, 2011

I have a heavily configured gedit on one of the machines on my network. I am looking for a way to back up all of the settings so that I can restore them later and/or move them to another machine on my network.

View 1 Replies View Related

Ubuntu :: Default Directory For Gedit?

May 8, 2011

I configured the shortcut Alt+G to fire up mini editor gedit, which is fine. But when I press Ctrl+O to open a file, it searches directory /, the very root. While I want it to open automatically in /home/urdata/java/, for instance. The man-page doesn't tell me and the Preferences... inside gedit do not cover it, it seems.

View 1 Replies View Related

Ubuntu :: Open The File In Gedit?

Jun 4, 2011

Ok, so I'm trying to do this: [URL]

The problem is, when I get to the part where I have to open the file in gedit, it says it can't open it, file not found, or something or other..So, when I manually browse to the directory '.local/share/..' there is no folder named 'applications,' only a text file. When I open it, it appears to be the home launcher file, but its in the wrong place and has the wrong name. What's going on? Shouldn't there be a folder there with my applications in it?

View 6 Replies View Related

Ubuntu :: Copy O/p Of Terminal To Gedit?

Jun 24, 2011

I wish to copy o/p of lsusb command to gedit.But I am getting following error>

root@jay-laptop:/home/jay/proj# lsusb -v |
gedit No protocol specified
(gedit:4310): Gtk-WARNING **: cannot open display: :0.0
root@jay-laptop:/home/jay/proj# lsusb -v | gedit hi
No protocol specified

View 9 Replies View Related

Ubuntu :: Sqlite Query Syntax ?

Feb 27, 2010

With this sqlite query ? I have these tables:

what is the query to list all cities and its neighboring cities like this?

View 5 Replies View Related

Ubuntu :: Add / Modify A Syntax Highlight?

Jul 4, 2010

I wanted to add/modify a syntax highlight for g

View 1 Replies View Related

Ubuntu :: Bash If/then Conditional Syntax?

Feb 7, 2011

I pride myself on at least trying to help myself before I ask, but I've been staring at this a long time, I'm just not getting any traction.I've literally got 3 linux references on my desk right now that say that I should be able to use if conditionals, for example

[ -d FILE ]True if FILE exists and is a directory.
[ -e FILE ]True if FILE exists.
[ -f FILE ]True if FILE exists and is a regular file.

[code]....

View 7 Replies View Related

Ubuntu :: Syntax Error When Deleting Dir?

Jun 1, 2011

I am trying to delete a dir (with the CLI), that contains many sub dirs and files:
Hello - DE Important Files Stuff (0000-0001)

I am using the command:
PHP Code:
sudo rm -rf Hello - DE Important Files Stuff (0000-0001)/ 

But I keep getting this error:
PHP Code:
-sh: Syntax error: "(" unexpected

The between the spaces in the file name isn't showing in the PHP code?!?

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved