LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 02-24-2006, 09:46 PM   #1
cramer
Member
 
Registered: Feb 2006
Distribution: Red Hat 9
Posts: 112

Rep: Reputation: 15
Bash script editor


Hi, I often find myself at my desktop (runs Windows XP ) and wanting to write shell scripts. Instead of using SSH and vi to make my scripts is there an editor for windows that has syntax highlight for bash scripts that I can use instead? Any help appreciated.
 
Old 02-24-2006, 11:03 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
On a windows machine I would recommend installing Cygwin or CygwinX. Then you could still use vim to edit the scripts. With CygwinX you could use kate. Plus you could test these scripts, and use them in windows. I've found it very handy at work, having programs like sed, grep, cut and enscript. There is a program called WinEdit, that is very extensible, but after 30 days a nag function kicks in to remind you to by it. It is used mainly for latex but might be useful for bash or perl scripts. You may be able to get emacs for windows.
 
Old 02-24-2006, 11:23 PM   #3
cramer
Member
 
Registered: Feb 2006
Distribution: Red Hat 9
Posts: 112

Original Poster
Rep: Reputation: 15
I'll give some of those a try. I was more looking for just a text editor that would have syntax highlighting, the scripts would still be for linux, not windows. I just want to write them on my windows computer for ease.
 
Old 02-25-2006, 12:15 AM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
I also recommend cygwin, but if you just want an editor you can still use vi. There's a windows version at http://www.vim.org/download.php.
 
Old 02-25-2006, 12:42 AM   #5
cramer
Member
 
Registered: Feb 2006
Distribution: Red Hat 9
Posts: 112

Original Poster
Rep: Reputation: 15
Thanks guys, that is just what I was looking for.
 
Old 02-28-2006, 06:13 AM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
It isn't a good idea to edit Linux or Unix files in windows. Windows adds both a new line and a return to the ends of lines. This can cause some config files to fail.
 
Old 12-27-2007, 03:17 PM   #7
ritzvin
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Rep: Reputation: 0
Cool

EditPadPro is free (with nagging) and has context highlighting for a long list of file types including perl scripts. It also allows you to select and convert between Windows, mac, and unix type files (\r\n vs \n) via the menu.

-rv
 
Old 12-27-2007, 03:51 PM   #8
PAix
Member
 
Registered: Jul 2007
Location: United Kingdom, W Mids
Distribution: SUSE 11.0 as of Nov 2008
Posts: 195

Rep: Reputation: 40
EditPadLite will probably do the job for you. No nagging and personal editor of choice when having to edit files in the Windows environment.
 
Old 12-28-2007, 12:01 PM   #9
ritzvin
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by PAix View Post
EditPadLite will probably do the job for you. No nagging and personal editor of choice when having to edit files in the Windows environment.
I didn't think the lite version had syntax coloring
though. (and I like my regular expressions too).

-rv
 
Old 12-29-2007, 10:44 AM   #10
gerbenny
LQ Newbie
 
Registered: Dec 2007
Location: Prince Edward Island
Distribution: Debian Etch
Posts: 17

Rep: Reputation: 0
NotePad++ is what I recommend in a Windows environment.

Has syntax highlighting for a ton of languages.

Supports unix/mac/windows line feed/carriage returns/eol.

it's free for use, but you can buy it if you want to.
 
Old 01-01-2008, 08:57 AM   #11
ritzvin
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Rep: Reputation: 0
Talking

Quote:
Originally Posted by gerbenny View Post
NotePad++ is what I recommend in a Windows environment.

Has syntax highlighting for a ton of languages.

Supports unix/mac/windows line feed/carriage returns/eol.

it's free for use, but you can buy it if you want to.
ooh. I like!! thanks. I now have a new editor.

-rainee
=)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script editor for GTBlackwell d1l2w3 Linux - Software 0 08-27-2004 11:59 AM
send automatic input to a script called by another script in bash programming jorgecab Programming 2 04-01-2004 12:20 AM
Text Mode Editor: What Choices? BASH, VI, EMACS? LinxAI Linux - Newbie 12 03-28-2004 11:17 PM
bash script - incrementing a filename in a script tslinux Programming 10 08-05-2003 11:58 PM
bash script prob: how can i tell the script that a 'dd' has finished? Frustin Linux - General 2 04-02-2003 05:34 AM


All times are GMT -5. The time now is 09:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration