Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#89232 - 18/04/2002 23:53 Notepad
Dignan
carpal tunnel

Registered: 08/03/2000
Posts: 12341
Loc: Sterling, VA
A quick question about Notepad (Windows).

Is there a way to make it always view "all files" in the open file menu? I use Notepad for HTML all the time, and it's annoying to have to choose "all files" every time.
_________________________
Matt

Top
#89233 - 19/04/2002 06:30 Re: Notepad [Re: Dignan]
SE_Sport_Driver
carpal tunnel

Registered: 05/01/2001
Posts: 4903
Loc: Detroit, MI USA
Can't help, but I'm an old school Notepad user too, so let me know what you find.



Attachments
87326-notepad2.gif (137 downloads)

_________________________
Brad B.

Top
#89234 - 19/04/2002 08:22 Re: Notepad [Re: SE_Sport_Driver]
Dignan
carpal tunnel

Registered: 08/03/2000
Posts: 12341
Loc: Sterling, VA
Haha! Thanks for the image, I'm gonna use that
_________________________
Matt

Top
#89235 - 19/04/2002 09:22 Re: Notepad [Re: Dignan]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
If you've got a hex editor then you can patch it to default to *.* instead of *.txt

If you've got the XP version of Notepad which is 66048 bytes:

Change byte 7C0 to 2A from 74
Change byte 7C2 to 00 from 78
Change byte 7C4 to 00 from 74

The text in the combo box is wrong now but it's only a cosmetic thing

- Trevor

Top
#89236 - 19/04/2002 09:27 Re: Notepad [Re: Dignan]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31602
Loc: Seattle, WA
Is there a way to make it always view "all files" in the open file menu?

Yes.

Replace it with UltraEdit.
_________________________
Tony Fabris

Top
#89237 - 19/04/2002 09:36 Re: Notepad [Re: tfabris]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Or TextPad, which I prefer.

Woohoo, UltraEdit vs. TextPad religious argument. It's been a while .
_________________________
-- roger

Top
#89238 - 19/04/2002 09:38 Re: Notepad [Re: Roger]
mtempsch
pooh-bah

Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
Can the Unix folks participate too? Does Textpad team up with vi or emacs?

Edit:
bla, s/Note/Text/

/Michael


Edited by mtempsch (19/04/2002 09:39)
_________________________
/Michael

Top
#89239 - 19/04/2002 10:26 Re: Notepad [Re: mtempsch]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
At empeg, some people use TextPad and some squirrelly rsh scripts, specifically to avoid having to run emacs or vi. The rest of us run emacs of one flavour or another.

Personally, I'm an xemacs guy, unless it's a really quick edit, in which case, 'vi' is easier to type .

How's that for fence-sitting?
_________________________
-- roger

Top
#89240 - 19/04/2002 11:00 Re: Notepad [Re: Roger]
davec
old hand

Registered: 18/08/2000
Posts: 992
Loc: Georgetown, TX USA
How's that for fence-sitting?

Hey! Yer sittin' on my spot of the fence!
_________________________
Dave Clark Georgetown, Texas MK2A 42Gb - AnoFace - Smoke Lens - Dead Tuner - Sirius Radio on AUX

Top
#89241 - 19/04/2002 11:48 Re: Notepad [Re: davec]
loren
carpal tunnel

Registered: 23/08/2000
Posts: 3826
Loc: SLC, UT, USA
PICO!
_________________________
|| loren ||

Top
#89242 - 19/04/2002 11:53 Re: Notepad [Re: Roger]
svferris
addict

Registered: 06/11/2001
Posts: 700
Loc: San Diego, CA, USA
I'll put my vote in for TextPad.
_________________________
__________________ Scott MKIIa 10GB - 2.0b11 w/Hijack MKIIa 60GB - 2.0 final w/Hijack

Top
#89243 - 19/04/2002 12:18 Re: Notepad [Re: svferris]
thenominous
member

Registered: 22/12/2001
Posts: 189
Loc: UK
Im gonna send up the flag for notetab which has to win cos its an excuse to visit a website with a .ch domain!

(and it's a pretty good text editor)

Top
#89244 - 19/04/2002 12:52 Re: Notepad [Re: mtempsch]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
I can't believe you started a text editor war without me!

vi all the way! Emacs csucks!
_________________________
Bitt Faulk

Top
#89245 - 19/04/2002 13:05 Re: Notepad [Re: loren]
matthew_k
pooh-bah

Registered: 12/02/2002
Posts: 2298
Loc: Berkeley, California
Loren has this one right. It's all about pico. Nothing fancy. It won't give you nightmares of parenthesis from trying to implement your own mail reader in emacs.... It is, however, twice as long to type as vi, but still a letter shorter than emacs. All i want is the nifty color-coding that emacs can do for code, but I live wihtout that.

Matthew

Top
#89246 - 19/04/2002 13:11 Re: Notepad [Re: Roger]
jimhogan
carpal tunnel

Registered: 06/10/1999
Posts: 2591
Loc: Seattle, WA, U.S.A.
Years ago I used Brief, ut then got completely hooked on the DOS version of MultiEdit . In the DOS world it was, for all intents and purposes, its own little IDE. Then Windows came along and MultiEdit went thataway.

One feature it had and that I loved was the ability to collapse a file (for quick navigation) using a function key based on user-defined customs strings. So, in function headers, I'd add a redundant function statement behind a custom comment string like "#*# function" then could hit <F4> and the file would collapse to just those comments. Move the cursor to the desired function, then hit <F4> to expand.

Maybe this is now a really common feature. Anyhow, can anyone recommend a Linux-capable editor/IDE that includes syntax highlighting for C, C++ and others and that includes a "collapse" capability (without having to build it myself in Emacs!).

Thanks!
_________________________
Jim


'Tis the exceptional fellow who lies awake at night thinking of his successes.

Top
#89247 - 19/04/2002 13:17 Re: Notepad [Re: jimhogan]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
    Anyhow, can anyone recommend a Linux-capable editor/IDE that includes syntax highlighting for C, C++ and others and that includes a "collapse" capability (without having to build it myself in Emacs!).
Vim!
_________________________
Bitt Faulk

Top
#89248 - 19/04/2002 13:37 Re: Notepad [Re: jimhogan]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31602
Loc: Seattle, WA
The IDE in Microsoft's ".NET" development environment does collapsible functions automatically, without even needing to change the syntax.

/me ducks, covers head, and runs out of the room.
_________________________
Tony Fabris

Top
#89249 - 19/04/2002 14:36 Re: Notepad [Re: wfaulk]
jimhogan
carpal tunnel

Registered: 06/10/1999
Posts: 2591
Loc: Seattle, WA, U.S.A.
Well, fair enough. I didn't make any stipulation about ease of use! I run Vim, but perhaps I wasn't using the right nomenclature to find its version of a collapse feature.

Is this an example what you mean?:

FOLDTEXT *fold-foldtext*

'foldtext' is a string option that specifies an expression. This expression is evaluated to obtain the text displayed for a closed fold. Example:

:set foldtext=v:folddashes.substitute(getline(v:foldstart),'/\\*\\\|\\*/\\\|{{{\\d\\=','','g')

This shows the first line of the fold, with "/*", "*/" and "{{{" removed.
Note the use of backslashes to avoid some characters to be interpreted by the ":set" command. It's simpler to define a function and call that:

:set foldtext=MyFoldText()
:function MyFoldText()
: let line = getline(v:foldstart)
: let sub = substitute(line, '/\*\|\*/\|{{{\d\=', '', 'g')
: return v:folddashes . sub
:endfunction

Evaluating 'foldtext' is done in the |sandbox|. The current window is set to the window that displays the line. Errors are ignored.


Of have I perhaps headed down the wrong Vim alley?

_________________________
Jim


'Tis the exceptional fellow who lies awake at night thinking of his successes.

Top
#89250 - 19/04/2002 14:45 Re: Notepad [Re: tfabris]
jimhogan
carpal tunnel

Registered: 06/10/1999
Posts: 2591
Loc: Seattle, WA, U.S.A.
The IDE in Microsoft's ".NET" development environment does collapsible functions automatically, without even needing to change the syntax.

Now functionally, that's really what I want. It looks from this that the Windows version of MultiEdit now does that via syntax instead of my old kludge (but no Linux version...).

Don't worry, Tony, someone will read your message who *would* touch .NET with a 10-foot insulated pole with rubber boots on!
_________________________
Jim


'Tis the exceptional fellow who lies awake at night thinking of his successes.

Top
#89251 - 19/04/2002 14:47 Re: Notepad [Re: jimhogan]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Yup. It's not difficult to use, it just doesn't understand every language's syntax, so you have to place markers specifically (:help fold-markers). You can also define where to fold in the same syntax file that defines coloring (:help fold-syntax), which should be more transparent, but I've not played with this yet.
_________________________
Bitt Faulk

Top
#89252 - 19/04/2002 14:55 Re: Notepad [Re: wfaulk]
jimhogan
carpal tunnel

Registered: 06/10/1999
Posts: 2591
Loc: Seattle, WA, U.S.A.
Yup. It's not difficult to use, it just doesn't understand every language's syntax, so you have to place markers specifically (:help fold-markers). You can also define where to fold in the same syntax file that defines coloring (:help fold-syntax), which should be more transparent, but I've not played with this yet.


Thanks. I'll take some time and give it a thought.

Geez, come to think of it, when I went to the grocery store earlier today, there was a guy sitting outside with a sign that said "Will Evaluate Regular Expressions for Food" . I should run back over and see if he's still there!
_________________________
Jim


'Tis the exceptional fellow who lies awake at night thinking of his successes.

Top
#89253 - 19/04/2002 18:50 Re: Notepad [Re: Roger]
ricin
veteran

Registered: 19/06/2000
Posts: 1495
Loc: US: CA
TextPad all the way. Been using it for years, and not about to stop now.
_________________________
Donato
MkII/080000565
MkIIa/010101253
ricin.us

Top
#89254 - 22/04/2002 03:14 Re: Notepad [Re: ricin]
frog51
pooh-bah

Registered: 09/08/2000
Posts: 2091
Loc: Edinburgh, Scotland
Mmm - UltraEdit under Winblows, vi under Linux, Jot under Irix.

Now what did I used to use on my Osborne cp/m box?
_________________________
Rory
MkIIa, blue lit buttons, memory upgrade, 1Tb in Subaru Forester STi
MkII, 240Gb in Mark Lord dock
MkII, 80Gb SSD in dock

Top
#89255 - 23/04/2002 23:32 Re: Notepad [Re: frog51]
pycckuu
stranger

Registered: 27/01/2002
Posts: 25
Loc: Alexandria, People's Republic ...

Top
#89256 - 24/04/2002 00:58 Re: Notepad [Re: pycckuu]
David
addict

Registered: 05/05/2000
Posts: 623
Loc: Cambridge
Seconded. If you're a Mac user, that is.

Top
#89257 - 24/04/2002 13:25 Re: Notepad [Re: David]
JBjorgen
carpal tunnel

Registered: 19/01/2002
Posts: 3584
Loc: Columbus, OH
I use a little freeware editor called PFE
Am I the only one?
I'm with loren on pico...I never had the discipline to learn vi
_________________________
~ John

Top