blog: new editor2 with HTML tag matching

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

RickyF
Silver Member
Silver Member
Posts: 211
Joined: 2004 Dec 12, 16:31
Location: CT, USA

Post by RickyF »

Tuxman
Platinum Member
Platinum Member
Posts: 1683
Joined: 2009 Aug 19, 07:49

Post by Tuxman »

How is this related?
Tux. ; tuxproject.de
registered xplorer² pro user since Oct 2009, ultimated in Mar 2012
Kilmatead
Platinum Member
Platinum Member
Posts: 4797
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Post by Kilmatead »

Tuxman wrote:How is this related?
As you provided a (broken) link to your favourite editor earlier, he's just evening the score.

Just out of interest when you said
Tuxman wrote:...typing two or three keys for something that would be way more complicated in ed² and N++ is simply lovely...
...could you provide an every-day example?
Tuxman
Platinum Member
Platinum Member
Posts: 1683
Joined: 2009 Aug 19, 07:49

Post by Tuxman »

Kilmatead wrote:As you provided a (broken) link
Broken? How?
Kilmatead wrote:...could you provide an every-day example?
Depends. My every-day use is some coding and some pure writing. For coding, there are probably more examples.

Go to line 23, remove three lines, go to the last character in the (now current) line and replace it by "x":
23G3dd$rx

No "Enter", no anything. :)

(And there's the "global" command... do something in every line that matches a certain regex, and so on.)
Tux. ; tuxproject.de
registered xplorer² pro user since Oct 2009, ultimated in Mar 2012
Kilmatead
Platinum Member
Platinum Member
Posts: 4797
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Post by Kilmatead »

Tuxman wrote:Broken? How?
Curious, this... if I click your embedded link to vim firefox always comes back saying that it can't find the server (this is repeatable).  However, if I just copy the link and paste 'http://vim.org/' directly, it goes there no problem.  Odd. :shrug:
Tuxman wrote:For coding, there are probably more examples.
N++ has a regex plugin, if I recall.

Other than than, what you're talking about is more ergonomic... some people (especially those with laptops) tend to not like mice that much, so setting up keyboard macros is a favoured method.  N++ happily does this too, if necessary.  However, for those who "do" like mice, that's moot.

I'm not against CLI, I just find it can be counter-intuitive if one's prejudice says "mouse-first, keyboard-second".  Some people (like you) are wired the other way around.

And again, for coding, a (proper) IDE (as nikos said) is the usual approach... I'd never claim N++ could replace one of those.  Though I am reminded of the days when learning Pascal on my old Commodore 64 no one had ever thought of IDE's for crappy little toy computers, so we made do with what we had and adapted quite well to even rudimentary CLI. :D Back then I would have killed for something like vim.
Tuxman
Platinum Member
Platinum Member
Posts: 1683
Joined: 2009 Aug 19, 07:49

Post by Tuxman »

Kilmatead wrote:N++ has a regex plugin, if I recall.
N++ can not do "certain actions for every line matching a regex".
Kilmatead wrote:I'm not against CLI, I just find it can be counter-intuitive if one's prejudice says "mouse-first, keyboard-second".  Some people (like you) are wired the other way around.
You can do everything with the keyboard, you can not do much with the mouse. So... :)
Kilmatead wrote:And again, for coding, a (proper) IDE (as nikos said) is the usual approach...
Seeing people starting eclipse is fun to me. I can do so many things while they look at their hourglass cursor.
Tux. ; tuxproject.de
registered xplorer² pro user since Oct 2009, ultimated in Mar 2012
Kilmatead
Platinum Member
Platinum Member
Posts: 4797
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Post by Kilmatead »

Kilmatead wrote:Though I am reminded of the days when learning Pascal on my old Commodore 64 no one had ever thought of IDE's for crappy little toy computers, so we made do with what we had and adapted quite well to even rudimentary CLI. :D Back then I would have killed for something like vim.
You've gotta love YouTube, there's always something nostalgic to cringe over.

Maybe you can't do everything with a mouse, but to someone adept at extended toolbar buttons and some dexterity, almost anything is possible.  Almost.

Yeah, Eclipse does sit there and "think about life" for awhile before anything happens, but I was rather surprised at how fast (on a decent computer - not usually a laptop) later versions of Visual Studio can boot - usable even for (almost) instant text file editing.  Every now and then MS can design something quite interesting and not bloated.

Regex on N++ by line... not using it for that sort of work, I couldn't say one way or the other.  One of those things "the N++ community kids" no doubt would be more informed about.
Tuxman
Platinum Member
Platinum Member
Posts: 1683
Joined: 2009 Aug 19, 07:49

Post by Tuxman »

Kilmatead wrote:Maybe you can't do everything with a mouse, but to someone adept at extended toolbar buttons and some dexterity, almost anything is possible.  Almost.
Well, unplug your keyboard then. Have fun.
Kilmatead wrote:I was rather surprised at how fast (on a decent computer - not usually a laptop) later versions of Visual Studio can boot
VS2008 is really impressive. Anyway, it all ends with VS2010 which uses WPF. :lol:
Kilmatead wrote:Regex on N++ by line... not using it for that sort of work, I couldn't say one way or the other.
I can, because it was my main editor before I got to know Vim. :)
(It still lays untouched on the hard disk. For emergency.)
Tux. ; tuxproject.de
registered xplorer² pro user since Oct 2009, ultimated in Mar 2012
Kilmatead
Platinum Member
Platinum Member
Posts: 4797
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Post by Kilmatead »

Tuxman wrote:Then unplug your keyboard
I can't do that - my G-15 runs my whole life through it's screen.  8)  Mad shite, the things people invent.

Image
Image

Not being au fait with it, what's wrong with WPF?  (Really, I know nothing about it.)
Tuxman
Platinum Member
Platinum Member
Posts: 1683
Joined: 2009 Aug 19, 07:49

Post by Tuxman »

Kilmatead wrote:I can't do that - my G-15 runs my whole life through it's screen.  8)  Mad shite, the things people invent.
You could hardly use your computer anyway.
Kilmatead wrote:Not being au fait with it, what's wrong with WPF?
Compared to the OS' native UI controls: It relies on a huge framework, so the overall performance decreases. (You know that from Java Swing interfaces. :P)
Tux. ; tuxproject.de
registered xplorer² pro user since Oct 2009, ultimated in Mar 2012
User avatar
WimdeLange
Gold Member
Gold Member
Posts: 416
Joined: 2004 Aug 16, 08:41
Location: NL

Post by WimdeLange »

Kilmatead wrote: However, I think what WimdeLange is referring to is that the x64 version of x2 already includes ed2 in a x64 version - so it follows that the next update will probably include this modified version in x64 as well.
Correct. I downloaded the new Ed version ans wanted to copy it in and noticed that the filenames are different. There is absolute no need for a 64 bit editor at all (other then performance, but that should be solved in other ways).
Groetjes,
  Wim de Lange
Kilmatead
Platinum Member
Platinum Member
Posts: 4797
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Post by Kilmatead »

Tuxman wrote:You could hardly use your computer anyway.
Well, I do have a couple of exta 24" LCD's hooked up to it.
Tuxman wrote:Compared to the OS' native...
I've said it before, and I'll say it again, your knowledge of English grammar (in this case possessives) is freaky for a non-native.  A compliment, that.
Tuxman wrote:It relies on a huge framework, so the overall performance decreases.  You know that from Java Swing interfaces.
I thought it was based on Active-X, and was thusly influenced by accelerations?

I wouldn't touch Java if you paid me.
Tuxman
Platinum Member
Platinum Member
Posts: 1683
Joined: 2009 Aug 19, 07:49

Post by Tuxman »

WimdeLange wrote:There is absolute no need for a 64 bit editor at all (other then performance, but that should be solved in other ways).
In worst case, a 64-bit application has a lower performance than a 32-bit application, depending on your configuration.
Kilmatead wrote:Well, I do have a couple of exta 24" LCD's hooked up to it.
... which don't replace your keyboard either.
Kilmatead wrote:your knowledge of English grammar (in this case possessives) is freaky for a non-native.
I do my very best. :)
Kilmatead wrote:I thought it was based on Active-X, and was thusly influenced by accelerations?
Not actually: http://en.wikipedia.org/wiki/Windows_Pr ... Foundation
Kilmatead wrote:I wouldn't touch Java if you paid me.
Neither would I, if I would not have had to. Anyway, these years are finally over. :)
Tux. ; tuxproject.de
registered xplorer² pro user since Oct 2009, ultimated in Mar 2012
Kilmatead
Platinum Member
Platinum Member
Posts: 4797
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Post by Kilmatead »

WimdeLange wrote:...other then performance
There is no performance benefit under x64 unless the application is coded specifically for it (not just x86 recompiled - which 99% of current x64 applications are), or you're using extended memory (and actually using it), as discussed elsewhere.

Ironically, there's actually a (humanly-imperceptible) performance decrease, as the registers need to process longer data structures per cycle.  One of those urban myths, I'm afraid.
Last edited by Kilmatead on 2010 Apr 28, 13:02, edited 1 time in total.
Kilmatead
Platinum Member
Platinum Member
Posts: 4797
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Post by Kilmatead »

Tuxman wrote:... which don't replace your keyboard either.
No, but they provide better resolution than my eyes do, so maybe I could replace them instead.
Kilmatead wrote:I thought it was based on Active-X, and was thusly influenced by accelerations?
Yeah, no, my mistake... I meant to say DirectX.
Designed to remove dependencies on the aging GDI subsystem, WPF is built on DirectX, which provides hardware acceleration