Search found 2456 matches

by ben_josephs
Tue Jan 31, 2023 10:22 pm
Forum: General
Topic: Ways to clean the "Find" "Replace"
Replies: 4
Views: 1300

Which functions fail and in what way?
by ben_josephs
Sun Jan 29, 2023 5:43 pm
Forum: General
Topic: Line and its value
Replies: 3
Views: 381

How do you determine how many lines there are in the keys (first) section and the values (second) section? Can it be arranged that they are separated by an empty line?
How do you determine the maximum length of the lines in the keys section?
by ben_josephs
Mon Jan 23, 2023 1:16 pm
Forum: General
Topic: Delete lines that end with a specific string?
Replies: 10
Views: 2724

Pedantically, yes. But the omission of a newline at the end of a text file is usually an error.
by ben_josephs
Mon Jan 23, 2023 10:39 am
Forum: General
Topic: Delete lines that end with a specific string?
Replies: 10
Views: 2724

They only differ if the last line is not terminated with a newline (with TextPad 8.15.1 and 9.0.1).
by ben_josephs
Sun Jan 22, 2023 10:22 pm
Forum: General
Topic: Delete lines that end with a specific string?
Replies: 10
Views: 2724

In fact, I often do this sort of thing in two steps: 1. Mark all the lines to be deleted: S earch | F ind... ( <F5> ): F i nd what: -a---$ [ X ] Regular e xpression M ark All 2. Delete the marked lines: E dit | De l ete | B ookmarked Lines This gives me a better chance of avoiding doing something st...
by ben_josephs
Sun Jan 22, 2023 2:30 pm
Forum: General
Topic: Delete lines that end with a specific string?
Replies: 10
Views: 2724

Search | Replace... (<F8>):
Find what: .*-a---\n
Replace with: [nothing]

[X] Regular expression

Replace All
by ben_josephs
Thu Jan 19, 2023 10:37 am
Forum: Enhancement Suggestions
Topic: Split option "Full path names in document selector and tabs"
Replies: 3
Views: 1565

It's not quite what you want, but you can toggle the display of full paths in both the document selector and tabs with the command View | ViewFullPaths . I have that assigned to <Ctrl+Shift+F11> . (I prefer multiple overlapping document windows, so I don't use tabs, and so it's not an issue for me.)...
by ben_josephs
Wed Dec 07, 2022 9:44 pm
Forum: General
Topic: Hex View
Replies: 3
Views: 1272

I see it too. The effect seems to be most pronounced when the contents of the file don't fill the document window.
by ben_josephs
Sun Dec 04, 2022 11:07 pm
Forum: General
Topic: Formatting the system date in a macro
Replies: 2
Views: 819

It looks like your dates are in crazy US format. Try: S earch | R eplace... ( <F8> ): F i nd what: \b(\d)?(\d)/(\d)?(\d)/(\d{4})\b Re p lace with: $5-(?1$1:0)$2-(?3$3:0)$4 [ X ] Regular e xpression You can put this in a macro: Replace = "\\b(\\d)?(\\d)/(\\d)?(\\d)/(\\d{4})\\b", "$5-(?...
by ben_josephs
Sat Nov 05, 2022 4:29 pm
Forum: General
Topic: Current line box
Replies: 15
Views: 3717

In C onfigure | P references... | Document Classes | <Class> | Colors or V iew | Document P roperties | Colors , choose I tem: Current Line (7th entry), set Foreground to whatever colour you want and Background to the same colour as Window background (1st entry; normally white).
by ben_josephs
Sat Oct 22, 2022 11:57 am
Forum: General
Topic: Zooming the Textpad Screen
Replies: 7
Views: 1993

MudGuard wrote:or right-click on the Toolbar, and activate the Zoom Toolbar ...
I didn't know about that (I don't use toobars).
You don't seem to be able to reset the zoom level from that toolbar.
by ben_josephs
Fri Oct 21, 2022 10:16 pm
Forum: General
Topic: Zooming the Textpad Screen
Replies: 7
Views: 1993

Do you mean to zoom in on a document?

Configure | Preferences | Keyboard | Categories: Zoom | Commands:
ZoomIn
ZoomOut
ZoomReset

I have them mapped to:
Shift+Alt+Up
Shift+Alt+Down
Shift+Alt+Num 5
respectively.
by ben_josephs
Thu Aug 25, 2022 9:44 am
Forum: General
Topic: Is it possible to prevent auto-saving of workspaces?
Replies: 4
Views: 575

If a workspace is open in a TextPad instance, then if you close the instance or open another workspace TextPad saves the (previous) workspace. But, as ak47wong said, you can explicitly close the workspace without saving it: F ile | W orkspace | C lose TextPad will ask: "Do you want to save chan...
by ben_josephs
Thu Aug 04, 2022 9:17 am
Forum: General
Topic: Default to ANSI sometimes
Replies: 7
Views: 2116

I don't believe there is a way to specify the encoding by directory. But you can specify the encoding by filename extension: in C onfigure | P references | Document Classes | <Class> for Default encoding: select ANSI or UTF-8 . You can override this when opening an individual file by specifying the ...
by ben_josephs
Thu Aug 04, 2022 8:30 am
Forum: General
Topic: Why does this crash TextPad?
Replies: 8
Views: 2117

MudGuard counts from 0, as do most programmers and mathematicians (although, when not programming, from long-standing habit, even they usually count lines and character positions from 1).