You are here: PSPad forum > Developer forum - new builds > PSPad unicode 4.5.3 (2265) English
Goto Page: Previous1 2 3 4 5 Next
Posted by: holger | Date: 2007-05-14 15:34 | IP: IP Logged
@Mr.Spock
Yes the - is added there, but that doesn't matter for Code-Explorer as it seems...
Posted by: toralf | Date: 2007-05-16 08:31 | IP: IP Logged
Hi Jan,
Thanks for the update.
Tested the code explorer for AutoHotKey (ftAHK):
Quote::*B:hotstring::ReplacestringF2::MsgBox, Hotkey F2
A & 9 up::MsgBox, Hotkey A & 9 on releaseRealLabel:
MsgBox, Hotkey F2
Return; RealLabelLineComment: ;the semi colon is a line comment
/* ;start block comment
RealLabelBlockComment:
*/ ;end block comment
The code explorer showed as labels the "F2", "RealLabel", "http" and "RealLabelBlockComment".
I do not know if it is by design that labels inside block comments are listed. But the http:// is not a label.
These rules apply to AutoHotkey:
- Labels have a colon ":" after their name followed by a space, tab or newline. NOT allowed characters for labels are \s,`%
- Hotkeys end on a double colon "::". There doesn't need to be a space after that but can. The allowed characters for hotkeys are \w #!<>^& Or the other way around, not allowed characters are space and \s. They can have two hotkeys combined with a & and can be followed with the text "up".
- Hotstring start with an colon ":" have some characters *?\w\d- an then a text .*? and a double colon "::". There doesn't need to be a space after that but can.
Here are some regex, maybe it helps to improve the code explorer for Autohotkey
Hotkeys:
i)^\s*(?P<Name>[^ \s]+?(?:\s+&\s+[^\s]+?)?(?:\s+up)?)::
HotStrings:
^\s*:[*?\w\d-]*:(?P<Name>.+?)::
Label with line comment
^\s*(?P<Name>[^\s,`%]+):\s*?(?:\s;.*)?$
Function definitions are rather hard to get. Here is a Regex, that does capture function definitions and calls. To only capture definitions the same and next lines have to be analyses for an opening brace "{". Inbetween the definition and the opening brace only comments are allowed.
^\s*(?P<Name>[][#@$?\w]+)\((?P<Parameters>[][#@$?\w,=".\s-]*)(?P<ClosingParen>\)\s*(?P<OpeningBrace>\{)?)?\s*?(?:\s;.*)?$
These regex were originally created by PhiLho, with modifications by myself.
EDIT: the line with http::// is not shown in the quote correctly. The link is shown as a link and not as its text. Don't know how to do it.
Edited 1 time(s). Last edit at 2007-05-16 08:34 by toralf.
Posted by: ellocco | Date: 2007-05-18 16:47 | IP: IP Logged
Hello!
There is still a problem with the compiler button
in Version 4.5.3 (2265) or is it a feature?
I'm coding Fortran77 and first I had problems
to set up the compiler parameter properly and
here the new PSPad version was very helpful, it
gave me a hint what is wrong, this is a great
improvement in the usability of PSPad, thank
you!
My mistake was "%Name%".lst instead of "%Name%.lst".
But know I had another problem, after one unsuccessful
compiler run, the compiler button was grayed out
and although the shortcut Ctrl+F9 was disabled,
I checked the help for help, but was not successful
to find help, so I had to restart PSPad.
Is this a bug or a feature?
Just recently I clicked on the "open log file" button,
beside the "logfile-message-window" and a good side
effect was, that the compiler button was active
again.
If this is a feature, it would be nice to comment on
this in the help to PSPad.
Kindest regards,
Stefan Pofahl, Ulm, Germany
Posted by: ellocco | Date: 2007-05-18 17:54 | IP: IP Logged
Hello,
it's me again, the click on the "open-log-file-button"
is not allway successful, I found another trick to
enable the "compile button" again, the command
"change the main code file for the compiler"
works better.
Kindest regards,
Stefan
Edited 2 time(s). Last edit at 2007-05-18 17:56 by ellocco.
Posted by: holger | Date: 2007-05-22 09:55 | IP: IP Logged
Hello again,
I've found a bug in the new Version:
the command-line parameter /D (for compare 2 Files) is not working correctly.
If PSPad is closed before, the Files are simply opened.
If PSPad is opened before, the Files are opened and a Openfile Dialog from Windows appears to select a File for compare with the first loaded File...
Greetings Holger
Posted by: Joël | Date: 2007-05-22 12:36 | IP: IP Logged
Hello,
I noticed a smallbug in TeX syntax highlighting : math mode ($ $) highlighting does not seem to function excepted when $$ is in between parenthesis. The same is true for version 2240; it was ok (only $ highlighted however, not the formula inside, but ths is fine) with version 2223.
Also, for those who have problems with character spacing (since version 2227), a simple workaround is to edit the font with a bitmap font editor and save it as bold without changing anything. Character spacing should then be "normal" (this trick worked for all my favourite bitmap fonts, including the one I have modified to suit my need and taste).
Joël
Posted by: Progress coder | Date: 2007-05-22 19:14 | IP: IP Logged
holger:Hi Jan,
for Highlighter I'm using a Individual one for Progress surely this should be language specific. But, as I guess, there's no way to handle it.There's another thing:
Code-Explorer works fine, but a '-' in the procedures name
makes PSPad cutting the name. Is there a hint? (Should be also individual for language...)Examble:
PROCEDURE adm-open-query-cases :Is shown as simple 'adm'.
Hi Jan,
I can add this, that KeyWords (also variable names) with different characters like '#' (in the ini-file) the Auto Completion does not work. The 'Find at cursor' (Ctrl-F) does however work perfectly with the ini-file setting of different characters.
Posted by: pspad | Date: 2007-05-22 20:27 | IP: IP Logged
Joël:Hello,
I noticed a smallbug in TeX syntax highlighting : math mode ($ $) highlighting does not seem to function excepted when $$ is in between parenthesis. The same is true for version 2240; it was ok (only $ highlighted however, not the formula inside, but ths is fine) with version 2223.Also, for those who have problems with character spacing (since version 2227), a simple workaround is to edit the font with a bitmap font editor and save it as bold without changing anything. Character spacing should then be "normal" (this trick worked for all my favourite bitmap fonts, including the one I have modified to suit my need and taste).
Joël
Sorry, I don't know TeX. I modify program as user tell me.
Math mode is ($$ $$) or ($ $) ?
Posted by: Joël | Date: 2007-05-23 14:51 | IP: IP Logged
The math mode in TeX is defined by $ $, any text inside the dollar is considered as mathematic and interpreted as such (for example to get x square you have to type $x^2$).
In pspad, in older versions, only the $ sign was highlighted, and in the current version (both beta and stable) nothing is highlighted, excepted if the formula is inside ($ $). Like if the math mode was defined as ($ text $) rather than the correct form $ text $.
I hope this is clear !
Joël
Posted by: pypardo | Date: 2007-05-24 16:46 | IP: IP Logged
Hi,
maybe bug detected in 2265 beta.
When data are displayed in hex format, button to hide/display log window is disabled.
But if you switch to another window (displayed in text format) you can hide/display log window, and then switch back to your hex window.
I don't know why this feature is there.
Best regards
pierre
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR