AutoHotkey Community

It is currently May 26th, 2012, 1:31 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 240 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11, 12 ... 16  Next

Do you want HiEdit internaly
Yes
No, I like Edit control
Other (please explain)
You may select 1 option

View results
Author Message
 Post subject:
PostPosted: November 14th, 2008, 11:01 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Hej.

No, HiEdit can't do it, and I am not aware of any editor that can do it.

It is certainly a good feature and I am too interested to know the answer.

One interesting thing to note is that it would be possible to implement such editor in AHK, I think :D

The idea is kinda extreme but not that hard to implement:

    1. Instantiate hiedit and set event to monitor text changes.

    2. On any change, grab visible text.

    3. Using defined regular expressions, search that text for it.

    4. If you find that expression, you take literal word you found, add it to the hes file, and set the new hes file again.


This is enough so you can add RE words, but it still will not be enough to highlight sentences, but again, I don't know any editor that can highlight key sentences.

So, this dynamic hes file building may do the trick.

Actually, speaking about it, modern editors are IMO way bellow what should they have been in 2009. I mean, there are 1000 of them and all are similar or pure garbadge. Vim is different tho, but I still wait to see editor that can support things you said, custom highlighting, language-independent regions (vim has this), custom marking, unconnected copy regions, mark saving (vim has it partially), regular expression search and replace with entire text (edit plus has it), independent multi syntax highlighting (some has it for specific languages, like CSS+HTML+JS, but nothing is there for general scenario)

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2008, 11:15 am 
Offline

Joined: October 27th, 2006, 10:12 am
Posts: 649
majkinetor wrote:
No, HiEdit can't do it, and I am not aware of any editor that can do it.

It is certainly a good feature and I am too interested to know the answer...
Btw. EmEditor can do this, but is limited to only 10 regex definitions. Sometimes limitations can be useful and let one concentrate on essential and relevant things/information but it would be great to break this limitation with the help of ahk and maybe also HiEdit.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2008, 3:06 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
I guess that is primary concern about that thing - Parsing bunch of reg-exps is probably slow if you don't limit the count.

It was pretty bad design idea to hard-code the limit tho. Users with faster computers could allow themselves larger number of RE's, especialy non complex ones... Perhaps you could influence the author to add some configuration flag that will by default be 10.


Also, there are light RE implementations. I have one such library here, and it contains most important subset of PERL RE. Size and speed are priority for such library. Utilising such library in editor project is perhaps the way to go.

Thx for information automaticman, it may come handy one day...

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2008, 3:11 pm 
Offline

Joined: October 27th, 2006, 10:12 am
Posts: 649
majkinetor wrote:
...Thx for information automaticman, it may come handy one day...
At anytime again for geniuses like you, my friend majkinetor.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 1st, 2008, 8:32 am 
Offline

Joined: November 27th, 2008, 9:44 am
Posts: 62
It would seem from the hiedit.inc file that drag-and-drop selection/insertion is built-in to the control. And it actually works perfectly well in the hieditdemo.

But unlike the standard cut/copy/paste functions (ctrl-a/c/v/x etc), which "just work" with the HiEdit control, the drag and drop does not.

Is there something I need to be doing to enable this, or is it just a weird thing about the control (in which case i might try to put together a HiEdit analog of this?

Thanks,
rulfzid


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 1st, 2008, 12:36 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
I never noticed that because I never use this feature in any editor.
What you say seems right. I don't know why it doesn't work.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2009, 1:21 pm 
Offline

Joined: July 17th, 2008, 9:46 am
Posts: 225
i used HiEdit and your wrapper in my program "Realtime Browser"

Thank you! Its a great wrapper!
Greets,
DHMH


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2009, 5:49 pm 
Offline

Joined: July 17th, 2008, 9:46 am
Posts: 225
Hi majkinetor... :D
Whats with the Function HE_Scroll or HE_LineScroll ? I found that in the Documentation BUT in your HiEdit Wrapper isn't a function called HE_Scroll or HE_LineScroll ... i need this function !
Greets,
DHMH


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2009, 6:06 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
You better change your weed provider 8)

Documentation is generated from the script. :)

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2009, 1:22 pm 
Offline

Joined: July 17th, 2008, 9:46 am
Posts: 225
oh, i´ve downloaded a newer version now, i had the old version!
Sorry :)
And thanks for your wrapper!
Greets,
DHMH


Report this post
Top
 Profile  
Reply with quote  
PostPosted: February 6th, 2009, 12:45 pm 
Offline

Joined: March 27th, 2008, 7:46 pm
Posts: 129
Location: France
:o Hello;
:arrow: I discover, and i find that very brilliant!
:?: Litttle question: it's possible to save the result in RTF or HTML? (>Like NotePad++ (via plugins>Nppexport>Export To Rtf)):?:

_________________
with ahk, all is different!...<img>


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2009, 12:57 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
No.

Its meaningless here, because you don't have any formating options except color. If you want to export colorised text its easy to create script that will consider Keywords.hes and produce html out of input, even rtf altho a bit harder.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2009, 1:34 pm 
Offline

Joined: July 17th, 2008, 9:46 am
Posts: 225
Hi,
can you help me, please:
this
Code:
~^F::
CmnDlg_Find(hwnd, "searchnow" )
return

SearchNow:
ControlGetText,controltxt,HiEdit1,%sourcename%
Loop,parse,controltxt,`n,`r
{
IfInString,A_LoopField,%CmnDlg_FindWhat%
    {
   line := a_index
   StringGetPos,pos,A_LoopField,%CmnDlg_FindWhat%
   HE_LineScroll(hEdit,pos,line)
   ;HE_ScrollCaret(hEdit)
   break
   }
}
return


don't work :(
I´ve try to make a search function.
Your function in the example Script _Test.ahk doesn't work :(
Greets,
DHMH


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2009, 1:57 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
I probably broke it during modifications in CmnDlg .


Ill fix this _Test.ahk problem and repost it.


Thanks for report.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2009, 2:58 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
OK, I fixed that error. Like I said, it was due to the fact that I changed CmnDlg to use dynamic functions instead labels, and didn't change that code in _Test.ahk

CTRL F to search, F3 to search next when you close the find dialog.

All search features work except searching upwards which I didn't implement. After all, this is only preview of features.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 240 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11, 12 ... 16  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher, maraskan_user and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group