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:
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.
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
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?
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
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?
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.
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.
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
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.
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.
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.
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"
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.
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.
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?
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.
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.
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
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.
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.
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.
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?
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.