Hello,
if a have a text file with arbitrary content e.g. "xxxxx" in each line and try
to find the character on the beginning of each line with regular expression (^.)
- credit matches every character in the line not only the first char.
It seems that the (^) -beginning of line regex is not recognised correctly, it
is ignored.
This happens in release version 1.013 and also in beta 1.014 build 6.
In the find/replace dialog window in MS Visual Studio 6, that appears as exactly
the same used in credit, the ^ regex functions correctly.
greetings
Uwe.
Hi,
I hadn't worked with free Pascal but I guess it's no different from
the other command-line tools - just check the How To section in CREdit
help:
How To: Work With Command-Line Tools
Hope this helps
Plamen Parvanov
--- In thecredit@yahoogroups.com, "abisofile" <gman@o...> wrote:
>
> hi
>
> is here someone who use credit with FPC(freepascal)
> if so plese tell m how to set up FPC under CREdit
>
> btw sorry for my english
Hi,
Sorry, can't help with your problem, just wanted to say:
Don't apologize for your English, I can't write or speak one word of Polish.
You're doing just great. Keep up your writing.
Best regards,
Hal
At 06:25 PM 11/8/2004 +0000, you wrote:
>hi
>
>is here someone who use credit with FPC(freepascal)
>if so plese tell m how to set up FPC under CREdit
>
>btw sorry for my english
>
>
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004
Hello,
Sorry, no word wrap yet. In fact the CREdit development has been
frozen since that time.
Best regards,
Plamen Parvanov
--- In thecredit@yahoogroups.com, "kereszt_hu" <les@c...> wrote:
> Hello,
>
> I'm just curious whether word wrap is implemented since 2001 (last
> post about long lines)? Where to enable? I'd just like to use
CRedit
> for email writing.
>
> Thank you,
> Cross
Hello,
I'm just curious whether word wrap is implemented since 2001 (last
post about long lines)? Where to enable? I'd just like to use CRedit
for email writing.
Thank you,
Cross
Anders,
Thanks for the advice. Your suggestion does all that I need :)
Willie
--- In thecredit@yahoogroups.com, "aklinting" <ank@d...> wrote:
> Hi
> I have done this differently:
>
> Under Options|Tools... create one called
> "Run script"
>
> set command : cscript.exe
> Arguments : $(FilePath)
>
> Check : "Prompt for arguments" and "Redirect to output Window"
> And choose "Active File only" under Save file before running this
> tool"
>
> I furthermore have assigned F5 (under Options|Keyboard...) to run
> this tool.
> This will runn your script and redirect your output to the output
> pane (plus allow you to specify command line arguments).
>
>
> Anders
> --- In thecredit@yahoogroups.com, willie@a... wrote:
> > I have modfied the "Save&Run" macro (that is available from the
> > CREdit website), to allow it to display the output of the
> > executed "script" in the output pane.
> >
> > To do this correctly I need to wait for the script to complete,
and
> I
> > therefore use a loop which contains a "Sleep" to do this.
> > Unfortunately though I can't seem to access the Sleep() method of
> the
> > implicit WScript object.
> >
> > The macro is listed below. Does anyone have any ideas what I am
> > doing wrong?
> >
> > Thanks,
> >
> > Will
> >
> > ' Begin script listing
> > Sub SaveAndRunScript
> > Dim objExec
> >
> > ' change current dir to the active document's directory.
> > Application.CurrentDirectory = ActiveDocument.Path
> >
> > 'Save Without Prompt only if file changed.
> > If ActiveDocument.Saved = False Then ActiveDocument.Save
> > ActiveDocument.FullName,False
> >
> > ' Write to output pane the name of the script that is being
> > run
> > Application.PrintToOutputWindow NOW() & " Starting " &
> > ActiveDocument.FullName
> >
> > Set WshShell = CreateObject("Wscript.Shell")
> >
> > 'Put " around file name in case it contains spaces.
> > Set objExec = WshShell.Exec("cscript.exe" & " " & chr(34) &
> > ActiveDocument.FullName & chr(34))
> >
> >
> > Do While objExec.Status = 0
> > Sleep(100)
> > 'WScript.Sleep(100) -- fails aswell
> > Loop
> >
> > ' Write the scripts StdOut to the output pane
> > Application.PrintToOutputWindow objExec.StdOut.ReadAll()
> > Application.PrintToOutputWindow objExec.StdErr.ReadAll()
> >
> > End Sub
Hi
I have done this differently:
Under Options|Tools... create one called
"Run script"
set command : cscript.exe
Arguments : $(FilePath)
Check : "Prompt for arguments" and "Redirect to output Window"
And choose "Active File only" under Save file before running this
tool"
I furthermore have assigned F5 (under Options|Keyboard...) to run
this tool.
This will runn your script and redirect your output to the output
pane (plus allow you to specify command line arguments).
Anders
--- In thecredit@yahoogroups.com, willie@a... wrote:
> I have modfied the "Save&Run" macro (that is available from the
> CREdit website), to allow it to display the output of the
> executed "script" in the output pane.
>
> To do this correctly I need to wait for the script to complete, and
I
> therefore use a loop which contains a "Sleep" to do this.
> Unfortunately though I can't seem to access the Sleep() method of
the
> implicit WScript object.
>
> The macro is listed below. Does anyone have any ideas what I am
> doing wrong?
>
> Thanks,
>
> Will
>
> ' Begin script listing
> Sub SaveAndRunScript
> Dim objExec
>
> ' change current dir to the active document's directory.
> Application.CurrentDirectory = ActiveDocument.Path
>
> 'Save Without Prompt only if file changed.
> If ActiveDocument.Saved = False Then ActiveDocument.Save
> ActiveDocument.FullName,False
>
> ' Write to output pane the name of the script that is being
> run
> Application.PrintToOutputWindow NOW() & " Starting " &
> ActiveDocument.FullName
>
> Set WshShell = CreateObject("Wscript.Shell")
>
> 'Put " around file name in case it contains spaces.
> Set objExec = WshShell.Exec("cscript.exe" & " " & chr(34) &
> ActiveDocument.FullName & chr(34))
>
>
> Do While objExec.Status = 0
> Sleep(100)
> 'WScript.Sleep(100) -- fails aswell
> Loop
>
> ' Write the scripts StdOut to the output pane
> Application.PrintToOutputWindow objExec.StdOut.ReadAll()
> Application.PrintToOutputWindow objExec.StdErr.ReadAll()
>
> End Sub
I have modfied the "Save&Run" macro (that is available from the
CREdit website), to allow it to display the output of the
executed "script" in the output pane.
To do this correctly I need to wait for the script to complete, and I
therefore use a loop which contains a "Sleep" to do this.
Unfortunately though I can't seem to access the Sleep() method of the
implicit WScript object.
The macro is listed below. Does anyone have any ideas what I am
doing wrong?
Thanks,
Will
' Begin script listing
Sub SaveAndRunScript
Dim objExec
' change current dir to the active document's directory.
Application.CurrentDirectory = ActiveDocument.Path
'Save Without Prompt only if file changed.
If ActiveDocument.Saved = False Then ActiveDocument.Save
ActiveDocument.FullName,False
' Write to output pane the name of the script that is being
run
Application.PrintToOutputWindow NOW() & " Starting " &
ActiveDocument.FullName
Set WshShell = CreateObject("Wscript.Shell")
'Put " around file name in case it contains spaces.
Set objExec = WshShell.Exec("cscript.exe" & " " & chr(34) &
ActiveDocument.FullName & chr(34))
Do While objExec.Status = 0
Sleep(100)
'WScript.Sleep(100) -- fails aswell
Loop
' Write the scripts StdOut to the output pane
Application.PrintToOutputWindow objExec.StdOut.ReadAll()
Application.PrintToOutputWindow objExec.StdErr.ReadAll()
End Sub
Hello,
first of all, sorry for any inconvenience caused by the last
messages. The authors have been removed from the list.
To ensure this does not happen again, the CREdit list will be
moderated from now on.
Best regards,
Plamen Parvanov
Im very wet just thinking about it! I want pleasure really bad. You can see my
pics on this dating site I'm on. We need more men there to take some of the
women begging for pleasure!
http://www.nakedfriendfinder.com/landing.asp?afl=MYHO
Hi,
if anybody finds it handy to search a string with simple selecting it an
press a key, here is the macro (best used with F3 shortcut):
-- snip --
Option Explicit
' (C) 2003 Theodor Willax
' DISCLAIMER:
'
' This software is provided "as is", without any guarantee made as to its
' suitability or fitness for any particular use. It may contain bugs, so
use of
' this tool is at your own risk. The author takes no responsibility for any
' damage whatsoever that may be caused through its use.
'
' FindNextSelected():
' If there is any text selected in the ActiveDocument the next occurence
of this
' string is searched and selected. If EndOfDocument is reached, the search
' starts at the beginning of the ActiveDocument and selects the next
occurence
' of the search string, if the user wants to.
' If no text in the ActiveDocument is selected, nothing is done.
' It is best used with a shortcut to F3 key.
Sub FindNextSelected()
If ActiveWindow.type <> "Text" Then
MsgBox sInfoTextFile
Exit Sub
End If
Dim sSelected, currLine, currCol
sSelected = ActiveDocument.Selection
If sSelected = "" Then
Exit Sub
End If
currLine = ActiveDocument.Selection.CurrentLine
currCol = ActiveDocument.Selection.CurrentColumn
ActiveDocument.Selection.FindText sSelected, dsMatchCase
' If we are at the end of the document, start search at the beginning,
' if the user wants to.
If currLine = ActiveDocument.Selection.CurrentLine _
And currCol = ActiveDocument.Selection.CurrentColumn Then
Dim answer
answer = MsgBox(sQuestionContinue, vbYesNo + vbQuestion, sQuestionTitle)
If answer = vbNo Then
Exit Sub
End If
ActiveDocument.Selection.StartOfDocument
ActiveDocument.Selection.FindText sSelected, dsMatchCase
End If
End Sub
Dim sInfoTextFile, sQuestionContinue, sQuestionTitle
sInfoTextFile = "This macro can only be run when a text editor window
is active."
sQuestionContinue = "Search has reached the end of document." + vbCrLf + _
"Do you want to continue searching from the beginning?"
sQuestionTitle = "Find Next Selected"
-- snap --
Simply safe the code in an .vbs file and add it to your macros. Select
shortcut F3 to execute it. Have fun.
Regards, Theo
Hi,
Are you looking for the "CNTRL-G" key sequence? This will provide a
pop-up that lets you
enter the line number you wish to goto. CRedit has many many features that
are not well known.
Look under Options, then select Keyboard, then select a category and you
will be amazed at the stuff this editor can do with key combos. Enjoy.
--- Steve
-----Original Message-----
From: Dimitris Keletsekis [mailto:dck@...]
Sent: Thursday, March 13, 2003 7:22 AM
To: thecredit@yahoogroups.com
Subject: [thecredit] goto line
Hi,
I'm looking for a way to tell CRedit to goto a given line in a file.
I know there is no command line argument that will do it but, since
CRedit has an automation interface, is there some simple script,
batch file or whatever that will do it?
Thanks
Dimitris
To unsubscribe from this group, send an email to:
thecredit-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Hi,
I'm looking for a way to tell CRedit to goto a given line in a file.
I know there is no command line argument that will do it but, since
CRedit has an automation interface, is there some simple script,
batch file or whatever that will do it?
Thanks
Dimitris
Plamen,
Would you consider selling the source to CRedit understanding that it
would be open sourced. I just find it hard to live without. A few
more features and all would be right in the world.
Thanks,
Ben
>> Oh man -- tell me it's not true!!! I use this editor every day in my
>> job and just love this editor. It will be a shame to see such a good
>> editor go untouched.
>
>Yes indeed. I use CR at work and at home, and it's all I need for writing
>code. It's not built in the MS Office way ("anything for anybody").
>instead, CR has has nothing extra. And with macros, it has been possible
>to handle bigger projects i.e. to automatically load multiple files. Here
>at work we're very satisfied with the current (beta) version but it's
>always sad to hear the software development for CR has ended...
>
I'm very disappointed, too. I've tried many editors, but CR is the most
efficient I know...
But I still hope of Plamen and it's CREditEx...
Regards,
Werner
I'll add another note of disappointment about this generation of the product having no future, and anticipation for the next generation.
I just discovered this jewel. I really appreciate its relatively small size and simplicity, while being infinitely and easily extendable with VBscripting. Just what the doctor ordered.
Thanks for this fine work, Plaman.
Please consider having the next generation expose a COM interface as well. That certainly is a knock-out feature that you don't find in many editors.
Oh man -- tell me it's not true!!! I use this editor every day in my job and just love this editor. It will be a shame to see such a good editor go untouched.
Have you given any thought to releasing the source code as an open source project?
John
--- Plamen Parvanov <plamen_p@...> wrote: > Hello, > > I guess it's about time to say it: I've stopped > working on CREdit, as it is. There will be no more > releases. Sorry. > > But: with the knowledge I've gained while creating > CREdit, I plan to create a new and better editor in > the future (I don't have a name for it yet...maybe > CREditEx?) > > Best regards, > Plamen Parvanov > [CREdit author] > > --- "emailtoben <emailtoben@...>" > <emailtoben@...> wrote: > > Job very well done. > > > > Everyone in the office is looking forward to the > > next beta/release. > > > > Thanks, > > Ben > > > > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up > now. > http://mailplus.yahoo.com > > To unsubscribe from this group, send an email to: > thecredit-unsubscribe@yahoogroups.com > > > > Your use of Yahoo! Groups is subject to > http://docs.yahoo.com/info/terms/ > >
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
To unsubscribe from this group, send an email to: thecredit-unsubscribe@yahoogroups.com
> Oh man -- tell me it's not true!!! I use this editor every day in my
> job and just love this editor. It will be a shame to see such a good
> editor go untouched.
Yes indeed. I use CR at work and at home, and it's all I need for writing
code. It's not built in the MS Office way ("anything for anybody").
instead, CR has has nothing extra. And with macros, it has been possible
to handle bigger projects i.e. to automatically load multiple files. Here
at work we're very satisfied with the current (beta) version but it's
always sad to hear the software development for CR has ended...
--
Math is like love - a simple idea but it can get complicated.
..R. Drabek
Oh man -- tell me it's not true!!! I use this editor
every day in my job and just love this editor. It
will be a shame to see such a good editor go
untouched.
Have you given any thought to releasing the source
code as an open source project?
John
--- Plamen Parvanov <plamen_p@...> wrote:
> Hello,
>
> I guess it's about time to say it: I've stopped
> working on CREdit, as it is. There will be no more
> releases. Sorry.
>
> But: with the knowledge I've gained while creating
> CREdit, I plan to create a new and better editor in
> the future (I don't have a name for it yet...maybe
> CREditEx?)
>
> Best regards,
> Plamen Parvanov
> [CREdit author]
>
> --- "emailtoben <emailtoben@...>"
> <emailtoben@...> wrote:
> > Job very well done.
> >
> > Everyone in the office is looking forward to the
> > next beta/release.
> >
> > Thanks,
> > Ben
> >
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com
>
> To unsubscribe from this group, send an email to:
> thecredit-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
Hello,
I guess it's about time to say it: I've stopped
working on CREdit, as it is. There will be no more
releases. Sorry.
But: with the knowledge I've gained while creating
CREdit, I plan to create a new and better editor in
the future (I don't have a name for it yet...maybe
CREditEx?)
Best regards,
Plamen Parvanov
[CREdit author]
--- "emailtoben <emailtoben@...>"
<emailtoben@...> wrote:
> Job very well done.
>
> Everyone in the office is looking forward to the
> next beta/release.
>
> Thanks,
> Ben
>
>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
temporary means: until implemented in CREdit :)
I came from DOS using the editor BE400 which supports folding and
making it much easier to keep the really important parts in focus.
Then I found the CREdit and I really like it - so easy to configure
and still so powerfull. But I missed the folding capabilities so much
that I´ve taken time to find a Windows editor with the possibilities
of BE400. I found nothing (!) the few I found were so expensive
and/or a catastrophe to configure and not really user-friendly :-\
Then I found an interesting way to imitate such capabilities with
CREdit - not so perfect like I was looking for but good enough that I
stoped to look for an alternative to CREdit.
I´ve taken a build-in-function of CREdit which appears if I click
right on an include file. So I mark the lines I want fold, cut them
and place the block in a new subwindow. Then I save it as an include
file and place a link (.include "E:\...") in the main code.
In the CREdit I´ve assigned the `FileInvoke´ command with CTRL-NUM-0
and `FileClose´ with CTRL-NUM-DEL.
So I can export all tested segments to individual include files and
call them back by simply pressing CTRL-NUM-0 and closing by CTRL-NUM-
DEL. Nothing else a folding editor would do - ok, the fold appears in
a new subwindow... but I can work with this sollution. And possibly
I´ll take time to write a macro to automate this process :)
Stefan
Hello Matthew,
one reason for this can be a corrupted initialization
file and/or registry setting.
CREdit uses several configuration files:
CREdit.ini -> tools settings
CREditHgl.ini -> syntax highlighting
CREdit.kbd -> keyboard customizations
CREdit.mdf -> macro definitiosns file
These files can be either in CREdit installation
directory, or in Windows directory.
If both are present, the files in CREdit directory
have precedence.
Also, there are some registry settings in:
HKEY_CURRENT_USER\Software\P3Soft\CR Editor
My advice is to try and delete or at least rename
(make backups in either case!) these files - may be
one of them is corrupted...
Try also to inspect/remove the registry settigns.
Hope this helps,
Plamen Parvanov
--- Matthew Waite <mattwaite@...> wrote:
> Plamen Parvanov,
>
> Very much enjoy your editor. I have been using it
> for sometime now with DOS
> compilers (80C51 PL/M-51) in Windows 98 SE. I have
> it setup for syntax
> highlighting, tool execution and output capture.
> Works great!
>
> Unfortunately I had a problem yesterday with my
> computer. CREdit "crashed"
> and I haven't been able to get it going again. I
> removed the program and
> reinstalled but I keep getting the following message
> (captured from Windows
> "FaultLog.txt" file). I have no other Windows
> problems (no more than normal
> ! )
>
> Date 10/15/2002 Time 12:24
> CREDIT caused an invalid page fault in
> module CREDIT.EXE at 0187:004665f4.
> Registers:
> EAX=00000000 CS=0187 EIP=004665f4 EFLGS=00010206
> EBX=00f507d0 SS=018f ESP=006ff804 EBP=006ff828
> ECX=00007fff DS=018f ESI=01054ae0 FS=42f7
> EDX=00017b04 ES=018f EDI=006ff838 GS=0000
> Bytes at CS:EIP:
> 89 48 54 8b 45 fc 3b 47 0c 0f 8c 6d ff ff ff 33
> Stack dump:
> 00f5086c 00f50290 00f507d0 00000400 0000000c
> 01054ae0 006ff880 00f50290
> 0000000c 006ff88c 004664eb 006ff838 00f50290
> 00491b64 0048d6e0 01054bc0
>
> I tried again downloading V1.013, then V1.014 both
> with the same results. I
> zipped up the files I had on my system and tried it
> on another-it worked
> fine.
>
> Are there any other files (DLLs etc) that may be
> causing this problem? Any
> solution(s) you can think of?
>
> Again, thanks for the great programmer's editor and
> for your assistance in
> correcting my problem. I greatly miss using CREdit
> for the requirement I
> have.
>
> Best Regards,
>
> Matthew Waite
>
>
__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
> I have CRedit installed on my WIN98 box and everything works fine. However,
> Windows itself does not seem to recognize CRedit as a "registered" program.
I have had no problems with Win98. However, when I use the "Open With"
thing, "Credit" isn't in the list of the applications. Instead of
"Credit", "Programmer's Text Editor" is there. I can't remember my old
Win98 computer does the same thing.
Another (non-permanent) solution is Drag'N'Drop.
--
Smile! Tomorrow will be even a worse day.
Hello,
I have CRedit installed on my WIN98 box and everything works fine. However,
Windows itself does not seem to recognize CRedit as a "registered" program.
For example, assume that I have a file called demo.out and I double-click on
this file name in Explorer. Since the "out" extension is not associated with
any program on my machine, I get a Window asking what program to open this file
with. However, CRedit is not in the list and I cannot figure out how to add
it!!!!
Several times each day, I have to open text files saved by other applications.
The file extension varies considerably and I do not want to associate the file
to any program or editor, just edit it. My plan is to rename CRedit.exe to
!CRedit.exe and get it registered into the "Open File With" list. Then when
I double-click on an unknown file type, "!CRedit" would always be the first
item in the alphabetic list.
Any hints how to do this?
Thanks.
--- Steve
I have a large text file created by redirecting the standard output of a program
to a file. Opening this file in Credit and attempting to scroll down will crash
Credit with a stack error. I tried this on two machines, one Win98, the other
is NT, both crash. I mention this only as a sample of a potential problem in
the program. (I only need to briefly view this file and have done so with
WordPad.)
The problem only happens when using redirection of the screen to a file. If
this is not a known issue, or if someone would like a sample text file
displaying the problem, let me know.
Including the above, Credit is still a GREAT Editor.
Thanks.
--- Steve
Hello,
About the only command-line option for CREdit is a
name of file which you would like to open. There are
no switches to position the cursor of a specific line.
As far as I understood from this mail, the idea is to
use event routine. The script:
Sub Application_DocumentOpen( doc )
MsgBox "Document opened"
End Sub
should work ok (I've tested it with CREdit 1.014 build
006)
Best regards,
Plamen Parvanov
--- axel@... wrote:
> Hallo Herr Neubauer,
> habe versucht, das mit dem "Event"
> Application_DocumentOpen zu lösen.
> Der soll immer aufgerufen werden, wenn man in CRedit
> ein Dokument
> öffnet.
> Man könnte dann in der Event.Routine
> Application.Path auswerten und
> darauf reagieren (z.B.
> ActiveDocument.Selection.MoveTo x, y).
>
> Das hat bei mir jedoch nicht geklappt. Ich scheitere
> schon dabei, die
> Event-Routine zu schreiben. Versucht hatte ich es
> mit:
>
> Sub Application_DocumentOpen(document)
> MsgBox("hello world")
> End Sub
>
> Doch leider startet der Event nicht, wie er sollte.
>
> Vielleicht inspiriert Sie das.
> Lassen Sie es mich wissen, falls Sie die Lösung
> finden.
>
> Gruß!
>
> Axel Kemper
>
>
> Dieter.Neubauer-LNI@... schrieb am
> 23.09.2002, 15:25:38:
> > Does anyone know what command-line options are
> available to start
> > CREDIT.EXE?
> > I looked for them in the help-file, on the
> homepage, in the mail-archive
> > but couldn't find any hint :-(
> > My problem is that I want to start CREDIT with a
> certain file and the
> > cursor placed at a certain line within the file -
> any suggestions?
> >
> > Thanks,
> > Dieter
> >
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com