Sponsored Content
Top Forums Programming Open Source What editor does everyone use? Post 75703 by tmarikle on Tuesday 21st of June 2005 01:42:29 PM
Old 06-21-2005
Quote:
Originally Posted by jim mcnamara
UltraEdit because it supports syntax highlighting for many dozens of languages/environments.
The bad part is it runs on Windows - I think there is an X version coming out, dunno.
UltraEdit is a great editor but, as you said, it's Windows only. You can use the ftp save as but that is still not that great.

I prefer vi since it is just about on every Unix box that I've ever used and, once you get used to it, navigation and feature use is only a couple of keystokes away. A couple of features that are very handy are bookmarks, copy and paste buffers, launching a program and automatically reading its output into your text, lauching a program using your text as input. These will become second nature and you'll get going pretty fast. I kind of wish UltraEdit could switch on a vi mode once in awhile.

Thomas
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Vi editor ?

Hello everybody, My question is: how to add /tmp/work at the end of line in vi editor. my file looks like: cp file1 cp file2 cp file3 **** I need to add " /tmp/work" at the end of each line. I tried this :%s/$/" /tmp/work" and this :%s/$/\ /tmp/work\/ but it does not work. (2 Replies)
Discussion started by: billy5
2 Replies

2. HP-UX

instead VI editor - which one?

I'd like to find some editor for HP-UX, something like notepad, but not VI editor. Can someone have some ideas which one? thx (6 Replies)
Discussion started by: diamond
6 Replies

3. UNIX for Advanced & Expert Users

vi editor

Hi, how can I add at the begining and at the end of all of the lines of my text file in VI editor ? Many thanks before. for exemple if in my file i have line 1 line 2 I want to have : start line 1 end start line 2 end (3 Replies)
Discussion started by: alain123456
3 Replies

4. UNIX Desktop Questions & Answers

best editor

We work on AIX 5L We use vi as text editor (only scripts to create and modifiy). What do you think of emacs ? Where can I find it ? Do you know better text editor for scripts ? Thank you for all answers. (1 Reply)
Discussion started by: annemar
1 Replies

5. HP-UX

vi editor

I am new in hp ux and I want work with vi editor, but in hp ux vi editor the backspaes and del keys doesn't work. how can I enable them. thanks (3 Replies)
Discussion started by: hkoolivand
3 Replies

6. UNIX for Dummies Questions & Answers

Pasting text in VI editor from a different editor

Hi, I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question. How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'? As i see, p & P options does work only within 'vi'. (10 Replies)
Discussion started by: harishmitty
10 Replies

7. Shell Programming and Scripting

set EDITOR=vi -> default editor not setting for cron tab

Hi All, I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by set EDITOR=vi it does not open a vi editor , rather it do as below..... ///////////////////////////////////////////////////// $ set... (6 Replies)
Discussion started by: aarora_98
6 Replies

8. Solaris

Epic Editor was not able to obtain a license for your use. Feature Epic Editor :Licen

Epic Editor was not able to obtain a license for your use. Feature Epic Editor :License server is down (1 Reply)
Discussion started by: durgaprasadr13
1 Replies

9. Shell Programming and Scripting

About vi editor

How can ` character be printed on vi editor ? empl_id=`echo $line | awk ' { print $1; } '` (2 Replies)
Discussion started by: senem
2 Replies

10. Shell Programming and Scripting

Not able to use @ in VI editor

Hello All, Need one Help for one issue. I am using a French Keyboard, so @ sign is on key 0 and i have to use right Alt + 0 to print it. It is working everywhere but not inside Vi editor. I can type @ in shell, in notepad. But inside Vi editor it is not working, another problem is that if... (2 Replies)
Discussion started by: yadavricky
2 Replies
Imager::Tutorial(3pm)					User Contributed Perl Documentation				     Imager::Tutorial(3pm)

NAME
Imager::Tutorial - an introduction to Imager. DESCRIPTION
Before you start If you have the necessary knowledge, install the image format libraries you want Imager image file support for, and Imager itself, otherwise arrange to have it done. You will also want some sort of image viewer tool, whether an image editor like Photoshop or the GIMP, or a web browser. Hello Boxes! - A Simple Start As with any perl program it's useful to start with a #! line, and to enable strict mode: #!/usr/bin/perl -w # you might to 'use warnings;' instead of the -w above use strict; These lines will be omitted in further examples. As with any module, you need to load it: use Imager; Now create a image to draw on: my $image = Imager->new(xsize => 100, ysize => 100); and draw a couple of filled rectangles on it: $image->box(xmin => 0, ymin => 0, xmax => 99, ymax => 99, filled => 1, color => 'blue'); $image->box(xmin => 20, ymin => 20, xmax => 79, ymax => 79, filled => 1, color => 'green'); Since the first box fills the whole image, it can be simplified to: $image->box(filled => 1, color => 'blue'); and save it to a file: $image->write(file=>'tutorial1.ppm') or die 'Cannot save tutorial1.ppm: ', $image->errstr; So our completed program is: use Imager; my $image = Imager->new(xsize => 100, ysize => 100); $image->box(filled => 1, color => 'blue'); $image->box(xmin => 20, ymin => 20, xmax => 79, ymax => 79, filled => 1, color => 'green'); $image->write(file=>'tutorial1.ppm') or die 'Cannot save tutorial1.ppm: ', $image->errstr; Adding some text The first thing you need to draw text is a font object: # use a different file, depending on the font support you have in # your installed Imager. my $font_filename = 'fontfiles/ImUgly.ttf'; my $font = Imager::Font->new(file=>$font_filename) or die "Cannot load $font_filename: ", Imager->errstr; If you're on Windows, you can supply a face name instead: my $font = Imager::Font->new(face=>'Arial Bold') or die "Cannot load 'Arial Bold: ", Imager->errstr; and draw the text: my $text = "Hello Boxes!"; my $text_size = 12; $font->align(string => $text, size => $text_size, color => 'red', x => $image->getwidth/2, y => $image->getheight/2, halign => 'center', valign => 'center', image => $image); So inserting this into our existing code we have: use Imager; my $image = Imager->new(xsize => 100, ysize => 100); $image->box(xmin => 0, ymin => 0, xmax => 99, ymax => 99, filled => 1, color => 'blue'); $image->box(xmin => 20, ymin => 20, xmax => 79, ymax => 79, filled => 1, color => 'green'); # use a different file, depending on the font support you have in # your installed Imager. my $font_filename = 'fontfiles/ImUgly.ttf'; my $font = Imager::Font->new(file=>$font_filename) or die "Cannot load $font_filename: ", Imager->errstr; my $text = "Hello Boxes!"; my $text_size = 12; $font->align(string => $text, size => $text_size, color => 'red', x => $image->getwidth/2, y => $image->getheight/2, halign => 'center', valign => 'center', image => $image); $image->write(file=>'tutorial2.ppm') or die 'Cannot save tutorial2.ppm: ', $image->errstr; Using an existing image as a base To load an image from a file, first create an empty image object: my $read_image = Imager->new; then call the read method: my $image_source = shift; # from the command-line $read_image->read(file=>$image_source) or die "Cannot load $image_source: ", $image->errstr; To keep to our working size, we'll scale the image: # the scale() method always does a proportional scale, we don't want # that here my $scaled_image = $read_image->scaleX(pixels=>100)->scaleY(pixels=>100); draw our inner box on that, and save the result: $scaled_image->box(xmin => 20, ymin => 20, xmax => 79, ymax => 79, filled => 1, color => 'green'); $scaled_image->write(file=>'tutorial3.ppm') or die 'Cannot save tutorial3.ppm: ', $image->errstr; so the complete program is: use Imager; my $read_image = Imager->new; my $image_source = shift; # from the command-line $read_image->read(file=>$image_source) or die "Cannot load $image_source: ", $image->errstr; # the scale() method always does a proportional scale, we don't want # that here my $scaled_image = $read_image->scaleX(pixels=>100)->scaleY(pixels=>100); $scaled_image->box(xmin => 20, ymin => 20, xmax => 79, ymax => 79, filled => 1, color => 'green'); $scaled_image->write(file=>'tutorial3.ppm') or die 'Cannot save tutorial3.ppm: ', $image->errstr; AUTHOR
Tony Cook <tonyc@cpan.org> REVISION
$Revision$ perl v5.14.2 2011-06-06 Imager::Tutorial(3pm)
All times are GMT -4. The time now is 07:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy