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


ADVERTISEMENT

OpenSUSE :: No Syntax Highlighting In Vim?

Jun 24, 2010

syntax on , is in ~/.vim file but still not syntax higlighting in vim a.cpp.Why?

View 3 Replies View Related

Ubuntu :: Ruby / Rails Syntax Highlighting

Jun 8, 2010

The site that used to host the language spec file for .erb/.rhtml for ruby/rails syntax highlighting is no more.If someone could attach the file for gtksourceview-2.It's located in /usr/share/gtksourceview-2.0/ language-specs/ and probably called rhtml.lang

View 2 Replies View Related

Debian :: Can't Get Work Terminal Syntax Highlighting

May 6, 2010

I can't get work terminal syntax highlighting for other users then root.To get the same result I've created /home/user/.bashrc and added the above options.I've also tried to override LS_OPTIONS in system-wide: /etc/bash.bashrc.In all cases is the highlighting working only for root.

View 1 Replies View Related

Fedora :: XEmacs Syntax Highlighting Does Not Work

Mar 30, 2011

I have installed FEDORA 14 in my machine. I am not able to have the syntax highlighting in the xemacs. I tried a file.f90 for a FORTRAN 90 program . I tried to flag the syntax highlighting in this buffer without success.
Code:
rpm -q xemacs
xemacs-21.5.29-15.fc14.x86_64

View 2 Replies View Related

General :: Enable Syntax Highlighting For .bash_aliases In Vim?

Aug 20, 2010

I'm working on reorganizing my .bashrc. I moved my aliases to .bash_aliases (which is sourced by .bashrc, but I can't figure out how to enable syntax highlighting for this file. vim seems unable to figure out what language the file is in. It works fine for .bashrc.

View 2 Replies View Related

General :: Configuration File For Vi Or Vim Editor For Syntax Highlighting?

Sep 10, 2010

On this Red Hat Box that I am using there is no .vimrc file for the user root. So, I created one and entered only one line to highlight syntax with colors when I am writing scripts in PHP and Bash. But it is not working.

Code:
[root@localhost ~]# cat ~/.vimrc
syntax on

[code]....

View 6 Replies View Related

Slackware :: What Viewer To Use For Viewing Man Pages With Syntax Highlighting

Nov 30, 2010

Is there a utility or method enabling easier navigation (keyword search, hyperlink etc) or color/syntax highlighting when viewing man pages?

View 7 Replies View Related

Ubuntu :: Changing Kate Syntax Highlighting (Font & Colors Schema)

Jan 10, 2010

I'm using a dark theme (Obsidian Coast) which is making things a pain to read using the default LaTeX syntax highlighting and color schema of Kate. I can edit the schema just fine, but that does not affect the colors of certain highlighting features, such as the color of expressions which fill in the ellipses of "section{...}", which turn out black or "egin{...}" which turn out dark blue.

Is there any way to fine-tune the highlighting features of a particular kind of markup (LaTeX in my case)?

View 5 Replies View Related

Ubuntu :: Fortran Syntax Highlighting And Code Folding Editor Wanted?

Jul 27, 2011

I am looking for a text editor that does 1) syntax highlighting2) code folding3) it would be a bonus if I could set which macros were defined and it would show me the source I have tried geany, and codeblocks. Both incorrectly code fold around preprocessor #ifdef and #endif. The gedit plugin doesn't seem to work at all

View 7 Replies View Related

Fedora :: Emacs: Set Syntax Highlighting For Unknown File Type

Mar 20, 2010

How can I tell emacs that a file type that it doesn't recognise should have the same syntax highlighting as one it does?

Xfig produces .pstex files which I want to be highlighted like .ps/.eps

View 2 Replies View Related

General :: Custom Syntax Highlighting In Bash Shell - Using Keywords

Apr 25, 2011

I know it's possible to change the $ user@hostname colors, but is it possible to color different things? Could I make all numbers/integers a certain color. Or set certain keywords to be bold?

View 1 Replies View Related

Applications :: Printing Support (line Numbers - Syntax Highlighting - Multiple Columns Per Page - Customizable Fonts And Sizes) Not Available

Jun 17, 2010

I've been looking though different editors for one that has good printing support. Ideally it should be able to print C++ code with line numbers, syntax highlighting, multiple columns per page, customizable fonts and sizes and a print preview feature so that I can make sure it looks right before sending it to the printer. It appears that notepad++ had at least some of these features, but it is not available on linux. The best I could do so far is to copy/paste the output of 'cat -n foo.cpp' into oowriter and format it into two colums. I don't get synax highlighting though and I have to manually replace tabs with a few spaces as well as some excessive leading spaces before the line numbering.

View 1 Replies View Related

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 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

General :: Syntax Error - Unexpected T_STRING In /home/dodonet2/public_html/includes

Jan 10, 2010

My website can`t open because of the error, Parse error: syntax error, unexpected T_STRING in /home/dodonet2/public_html/includes/config.php on line 45.

View 8 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 :: Gedit Latex Plugin Not Working

Apr 23, 2010

I have installed gedit latex pugin but I am not able to compile the tex file from the gedit.Ihave rubber installed as well

View 2 Replies View Related

Ubuntu :: Gedit Command In Terminal Not Working

May 1, 2011

I am trying to use the gedit command to edit my smb.conf file. It was originally working and all of a sudden it has stopped working. I have typed.. 'gedit /etc/samba/smb.conf' but it is a no go. I used the chmod command to set permissions as.. 'chmod 744 smb.conf' However I am still unable to get the file to open. If I do the 'more smb.conf' command I am able to read the contents of the file, however I am unable to edit them.

View 9 Replies View Related

Ubuntu :: Script And Gedit Not Working Properly?

Aug 14, 2011

I'm having a problem with the script thing I installed to make gedit show up on right click and open with. I can't seem to get it to work properly. What I do is this; I right click on a text doc and click on scripts and then open with gedit. It opens a new text doc with "" as the file name. Any idea on how to fix this. I need to know as soon as possible because I have many files I need to use gedit with.

View 7 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

Ubuntu :: Gedit Plugin Install - No Way To Get Plugins Working

Jun 22, 2010

After a month or so on a WUBI install (Lucid Lynx 64bit) I decided to pass to a clean install to a dedicated partition and here I am, almost happy. I have installed 5* ( uninstalled & installed) gedit-plugins package by every means I know of (apt-get from terminal, ubuntu software center, synaptics) and I also have downloaded and unzipped the package to ~/.gnome2/gedit/plugins folder. But none of the plugins is working.

I don't know if it is relevant, but i noticed the following: on my wubi installation i had installed gedit-plugins with apt-get and it had installed in the ~/.gnome2/gedit/plugins folder. Now I find the contents of the package in /usr/lib/gedit-2/plugins and /usr/lib64/gedit-2/plugins. I don't know if it has anything to do with anything.

View 1 Replies View Related

Fedora :: Gedit Not Working For Root

Mar 12, 2011

When trying to use gedit in su mode get this:

Code:
(gedit:2340): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported
**

[Code]....

tried removing and reinstalling but no change

any other options or a way to boot the graphic mode in root?

View 14 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

Fedora :: Gnome Shell Snap Not Working For Gedit MDI?

Jun 27, 2011

Gedit windows don't aerosnap left or right. They do upwards (to maximize).

Fedora 15, Gnome Shell, enjoying it.

A classical case for "aerosnapping" two windows side by side, in my experience, is a terminal on one side and a HOWTO in gedit on the other side. This allows easy copy and paste.

Anyway, a gedit window doesn't aerosnap left and right (it only heeds to aerosnapping on the top, for maximizing its window).

View 8 Replies View Related

OpenSUSE :: Gedit 2.28.3 Not Working Properly For Its 'Search' Machine?

Aug 31, 2011

Gedit-2.28.3 text editor is not working adequately on Osuse 11.2: after selecting 'Search'--> 'Find/Replace'is not feasible to write properly in the corresponding box greyed/unabled)

View 2 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

Programming :: Syntax Error Near Unexpected Token - Not Working ?

Jan 28, 2010

I got this script from website for inviting peoples to game and earning points easily ...but this seems not working and giving error..

View 4 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







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