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


ADVERTISEMENT

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 :: 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 :: Why VI Editor Highlighting All Text

Mar 31, 2011

All of a sudden all the text in my vi editor is highlighted. I have no idea how this happened.

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

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

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

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

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

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

General :: Bash Shell Syntax For Opening A Text Editor?

Apr 28, 2011

I'm trying to be able to Open a text editor without needing an existing file.This is my code:

case $ans in
"Show Today") echo "$(date)";;
"Show Calendar") cal;;

[code]...

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

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

General :: Send A File Using The Sftp Syntax

Mar 24, 2011

I understand how to get a file from an another computer using the sftp syntax

So i can get the file abc from comp2 to comp1

But how can I send a file cba from comp1 to comp2 using the sftp(I am still using comp1)

View 2 Replies View Related

General :: Sudoers File: Syntax Error?

Jul 11, 2010

Recently I edited sudoers file and did typing error. Now neither I can do sudo nor change it.

Code:
sudo visudo -c
>>> sudoers file: syntax error, line 8 <<<
How I can get correct the sudoers file?

View 5 Replies View Related

General :: Syntax Error Near Unexpected Token `for File In

Jan 19, 2011

I have been trying to get the following code to run.


Code:

However I am getting the following error:

Is there something that I am missing in the script? I have it as a unix file and tried to make sure that I did not have any extra characters.

View 7 Replies View Related

General :: Rpm Spec File Conflicts Syntax Query - Not Keeping The Package Name

Mar 9, 2011

I have inherited our Linux packaging and as the number of versions increase, the number of conflicts is starting to get a bit unmanageable. I believe the easiest way would have been to keep the package names the same and just change the release in the spec file but unfortunately I am past that as a lot of these packages are rolled out to our estate. (I am told there were reasons for not keeping the package name the same and incrementing the version/release)

Is it possible to wildcard conflicts so I don't need to keep adding as new versions are created. For example, instead of using all the conflicts below, have something along the lines of AAtest45* <= 1.4 & BBtest45* <= 1.4 Meaning that all I would need to do was change this to 1.5 at the next release (the packages below version matched the release in the spec file)

[Code]....

View 2 Replies View Related

General :: Save A File Edited With VI Editor?

Feb 13, 2011

How do I save a file edited with the VI editor? How do I get help information on this program?

View 1 Replies View Related

General :: Vi Editor To Move File Page?

May 10, 2011

I have a file of 200 pages. I want to move my cursor page wise. Suppose I want to move my cursor from last page of the file to up three pages.Is there any command to do it or I use "k" to move up?

View 3 Replies View Related

General :: Open The Ftpusers File Through Vi Editor In HP-UX?

Aug 25, 2010

when I try to open the ftpusers file through vi editor in HP-UX, I am reciving the below error :

# vi ftpusers
"/var/tmp" No such file or directory

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

General :: Default Editor Can Be Changed In Redhat To Different Editor?

Mar 10, 2011

How default editor can be changed in redhat linux to different editor.

View 4 Replies View Related

General :: Feed Text To File Editor From Named Pipe

Apr 24, 2011

Does any one know how can i input text by reading from a named pipe to any popular GUI based text editor?

View 5 Replies View Related

Debian Configuration :: Postfix Bad IP Syntax Support

Apr 23, 2016

I have currently configured Postfix as an SMTP server. I would preferably not use a domain name in my email address, like so: myname@[1.2.3.4]

I'm currently testing to see how other mail servers handle this kind of address. When I sent a mail with one one of my gmail accounts, I see that the mail gets rejected due to bad syntax.

It seems as though Google is giving me a RCPT TO address like so: myname@1.2.3.4 However, the postfix server rejects this address with the following error:

501 5.1.3 Bad recipient address syntax

To my best knowledge the only way to have an IP address inside an email address with to write it as a domain literal [1.2.3.4].

My question: how to configure postfix to accept myname@1.2.3.4 as well?

I have put both [1.2.3.4] and 1.2.3.4 in "mydestination" and 1.2.3.4 in "virtual_alias_domains".

It doesn't seem to work so far though.

View 1 Replies View Related

General :: Disk Based Text Editor To Edit File Larger Than Memory?

Aug 2, 2010

I am using Ubuntu and looking for a good editor to edit a file that is > 4GB. I just need to put content at the end and beginning of the file. I suppose I could use something like

cat "text to add" >> huge_file

To append to the file. Is that the route to go? What about prepending? In general, what is the best route if I wanted to edit somewhere in the middle?

I've tried VIM and it fails miserably. I assume emacs and nano would be even worse. What else is there? I assume to accomplish what I am looking for, the editor would have to be specifically designed for this by not keeping the entirety of the file's contents in memory.

View 5 Replies View Related

General :: Install Ctags For Vim Editor - Libldap.so.2 Cannot Open Shared Object File ?

Dec 2, 2010

I'm running Linux lnx3-228 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
red hat linux.

When I try to install ctags for vim editor, it gives me the following error. error while loading shared libraries: libldap.so.2: cannot open shared object file: No such file or directory

When I look into the /usr/lib folder, the file is naturally missing. I have this file.

When I tried to rename the soft link to libldap.so.2 it gave me a segmentation fault.

Where do I install the packages from ?

View 3 Replies View Related

Debian Configuration :: - Privoxy Default.action Syntax?

Sep 15, 2010

So I was reading this thread on internet privacy and decided to 'upgrade' my system. I installed privoxy and tor and chained them from squid so it looks like this: iceweasel >> squid >> privoxy >> tor. All is working well except when I go to edit my privoxy default.action file I get a fatal error. I've got version 3.0.9-1 The original line in the newly installed default.action file. #+hide-referer{forge}

I edited it by simply removing the #. +hide-referer{forge} Then:su -c '/etc/init.d/privoxy force-reload'And I get this in the logfile.Sep 14 16:41:36.260 Privoxy(7f4fa64756e0) Fatal error: can't load actions file '/etc/privoxy/default.action': first needed line (361) is invalid: +hide-referer{forge} I've even copy/pasted from the manual and to no avail.Have I been looking at to much text for the last two days?What am I missing?

View 1 Replies View Related







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