Page 6 of 6 « First<23456
Topic Options
#90571 - 2003-01-26 07:28 PM Re: PostPrep-Test Post , please ignore code
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
as jpols is offline like usual, say it here.

now also udf-collector seems to be "compatible" with postprep.

I just wonder should it show the colors or not...
_________________________
!

download KiXnet

Top
#90572 - 2003-01-27 09:34 AM Re: PostPrep-Test Post , please ignore code
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
I don't have a very strong view on highlighting variable and macros in strings for posting. For consistancy I think it would be better if they are, after all as us non-poets say, "a variable is a variable..." [Wink]

It's more important to highlight variables and macros in editors, as forgetting to double up $,@ and % characters is a common and easily fixed error. Here is an example from VIM with and without highlighting variables in strings:

"Variable $$sUserName is $sUserName, @@WKSTA is @WKSTA" ?
"Variable $$sUserName is $sUserName, @@WKSTA is @WKSTA" ?


If the processing or coding overhead is significant it is probably not worth the bother.

On the issue of indenting shouldn't it simply respect whatever is in the original code? Or am I missing something?

Top
#90573 - 2003-01-27 09:40 AM Re: PostPrep-Test Post , please ignore code
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
there is no indention.
only place where that must occur is the onclick which needs to have space before equal sign.

like I pasted your code in kixcryptGUI, is the indention messed up?

the var in string, it actually was that way before and it's faster to execute and easier to code...

but, string is a string is a string.
_________________________
!

download KiXnet

Top
#90574 - 2003-01-27 10:20 AM Re: PostPrep-Test Post , please ignore code
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Richard,

Thank you for your response
only so much :

90% of the errors in KiX coding are missing quotes (at least it was when when I started to code KiX and sometimes I do this still [Roll Eyes] ), so the best approach to visualize these is consequently colorize strings whereever they occur : even those multilined execute statements I start to use more and more since this PostPrep coding (my Uedit btw. doesn't colorize ,multiline strings : one of the annoying facts about it ) ; That would get the best (IMHO) possibility to easy recognize those errors

regards
J.
_________________________



Top
#90575 - 2003-01-27 10:38 AM Re: PostPrep-Test Post , please ignore code
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
The VIM syntax file doesn't handle multi-line quoted strings either - I can't blame anyone else as I'm the maintainer LOL
Top
#90576 - 2003-01-27 10:44 AM Re: PostPrep-Test Post , please ignore code
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Maybe I should use the windowed vi version some day ... Is it free ?

NO ! PLEASE DON'T ABUSE THIS AS AN EDITOR DISCUSSION [Mad]
_________________________



Top
#90577 - 2003-01-27 11:12 AM Re: PostPrep-Test Post , please ignore code
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
You can download it (and get more info) here

Yes it is free (including source code). It is covered by a "charityware" license, similar to KiXtart's "careware". And the maintainer Bram Moolenaar is Dutch I believe. Spooky, eh?

It has a powerfull scripting language and a generic WIMP/GUI interface.

It's probably most useful to people who already know VI and it's keystroke / regular expression / colon prompt commands. Someone who just wants a syntax highlighting editor on Windows is probably better off with something simpler.

It has some great features that I'm only just discovering after years of using it. I recently discovered "folds", which allow you to collapse sections of code to a single line. I now "fold" functions and variable declaration areas in my code, and as the folding can be nested I fold large and complex SELECTs within the function folds.

And of course it supports "convert to HTML" for any programming language syntax [Wink]

Top
#90578 - 2003-01-27 11:19 AM Re: PostPrep-Test Post , please ignore code
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Oh well ... there is no need for PostPrep anymore then ?

mmm .. only if it was as spreaded as $micronot$ [Wink]
_________________________



Top
#90579 - 2003-01-27 11:21 AM Re: PostPrep-Test Post , please ignore code
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
there is.
as postprep supports this board...
IIRC that didn't [Wink]
_________________________
!

download KiXnet

Top
#90580 - 2003-01-27 11:32 AM Re: PostPrep-Test Post , please ignore code
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Of course there is a need for post-prep, it is designed to to a specific job.

VIM's HTML conversion is designed simply to convert the syntax coloured text to HTML format suitable for representing as a flat web page.

Post-prep is designed to convert plain text to a format suitable to posting to the KiXtart forums which might require fiddling with the code slightly to get it to look right and to get around the "tag not allowed" and similar posting problems.

Don't stop now!

Top
Page 6 of 6 « First<23456


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.065 seconds in which 0.027 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org