#206691 - 2013-02-17 12:30 AM
New Forum Member needs help on using postprep
|
applitude
Fresh Scripter
Registered: 2013-02-14
Posts: 18
Loc: Cologne, Germany
|
Hello,
my name is Andre and i'm a new member of this forum. I've been using KiXtart for more than 10 years for a lot of administrative tasks.
Now i want to submit some UDF's to the UDF Scripting Forum. I've read the Guidelines and download ppcl.kix (2.1.0.2). After this, i've converted my UDF into html by using postprep. BTW, seems to me that ppcl.kix (2.1.0.2) does not run with KiXtart 4.63. ppcl.kix starts but never ends (hang) with this KiXtart Version.
Now i've tried to create a new Post in the UDF Forum. I use the code-Tags and put the html-code between them. Then i choose "using HTML and UBBCode" as Markup. To ensure that i've made no mistakes, i press the "Preview Post"-Button. But the preview always shows the native html-code.
What did i wrong?
TIA -- Andre
_________________________
The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt. ( Bertrand Russell)
|
|
Top
|
|
|
|
#206693 - 2013-02-17 03:28 AM
Re: New Forum Member needs help on using postprep
[Re: Lonkero]
|
Glenn Barnas
KiX Supporter
   
Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
|
Andre,
PPCL.KIX is PostPrep for Command Line, PostPrep.kxw is the GUI.
Posting of PostPrepped code should be done in HTML Only mode to avoid any issues. DO NOT use code tags - just paste the HTML directly into the posting window. If you want any text before your post, you will need to format it with HTML tags, not BBCode.
If you don't have .KIX registered with Kix32, run the following, starting with nothing but a command-prompt open on your desktop (all other windows minimized):kix32 ppcl.kix -s:myscript.kix -o:myscript.htm On my system, using the ppcl.kix command as "myscript", the task took 5.33 seconds to process using 4.62. It does hang with 4.63 - this is the first time it's been reported as such - I'll look into the issue.
If you use the -c option, PPCL will load the HTM content into the clipboard for pasting directly into a KORG post. This requires IE to be configured to allow external apps to use the clipboard function. If you don't allow this, a dialog box may appear asking you to allow the copy operation. By running with all other windows minimized, you have a better chance of seeing this prompt. You may need to move your command window to see it.
You can allow this automatically by opening IE properties and editing the appropriate security setting: Scripting / Allow Programmatic Clipboard Access - ENABLED.
The PostPrep.kxw file is a Kix script usually run with WKix32 and is a GUI-based tool - you can load/past a script, see a preview, and copy the HTML content for pasting into a post. The latest version restricts the size of the preview. Save the file as HTML and open in IE to see the full display.
PPCL is designed for automation. For example, I run a PPCL command via scheduled task on my primary web server. It has 2 parameters in the PostPrep.ini file that define the location of all the UDFs and the destination for all the post-prepped output. This generates PostPrepped content of my entire Kix UDF library every night for use on my web site. It runs every night at 10pm (EST).
For now, run PPCL or PostPrep with Kix version 4.62.
Glenn
_________________________
Actually I am a Rocket Scientist!
|
|
Top
|
|
|
|
#206696 - 2013-02-17 06:56 PM
Re: New Forum Member needs help on using postprep
[Re: Glenn Barnas]
|
applitude
Fresh Scripter
Registered: 2013-02-14
Posts: 18
Loc: Cologne, Germany
|
Glenn,
thanks for your quick and detailed answer! Maybe my English is too bad, but i had no problems in using ppcl.kix (except, that it won't run with 4.63 :-)
After reading Lonkero's answer, i decided to use only code-tags to publish my UDF's. My mistake was, that i thought, that only postprep-prepared code will be colorized if someone clicks the postpop-icon.
Nevertheless, your answer was helpful. Now i understand the main purpose of ppcl.kix much more better. I think i will use it the same way as you: preparing my scripts before publishing them on my own website.
So i've already made some tests with the ppcl.kix. By doing this, i may detect another small bug. After changing some colors and attributes in the postprep.ini, i saw that the operators are not formated in any way. May i'm wrong, but the KiXtart Documentation defines operators as "+", "-", ..., "and", "or", etc.
Regards -- Andre
_________________________
The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt. ( Bertrand Russell)
|
|
Top
|
|
|
|
#206698 - 2013-02-17 08:41 PM
Re: New Forum Member needs help on using postprep
[Re: Glenn Barnas]
|
applitude
Fresh Scripter
Registered: 2013-02-14
Posts: 18
Loc: Cologne, Germany
|
I actually have a newer version of postprep internally. I'll look at the issues with 4.63 and the operator tagging today. I'll post an update as soon as I can resolve the issues. That would be great! Thanks Glenn!
Andre
_________________________
The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt. ( Bertrand Russell)
|
|
Top
|
|
|
|
#206701 - 2013-02-17 10:47 PM
Re: New Forum Member needs help on using postprep
[Re: Glenn Barnas]
|
applitude
Fresh Scripter
Registered: 2013-02-14
Posts: 18
Loc: Cologne, Germany
|
Glenn,
Wow, that's what i call a "quick" response! The new version works fine with KiXtart 4.63. I've converted 4 scripts into html-code without any problems.
... my notes indicate that such support was dropped because certain characters had to be filtered due to HTML conflicts. Well, i think that's really a problem! There are a lot of operators that require a special script handling (<>&=)! So don't hurry! The operator handling would be nice, but it's not really important.
Greetings from Germany -- Andre
_________________________
The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt. ( Bertrand Russell)
|
|
Top
|
|
|
|
#206704 - 2013-02-18 01:47 AM
Re: New Forum Member needs help on using postprep
[Re: Glenn Barnas]
|
applitude
Fresh Scripter
Registered: 2013-02-14
Posts: 18
Loc: Cologne, Germany
|
...the end of clauses aren't being highlighted (else, endif, etc..) Oops, you're right. Didn't see this! Next time i'll have to test the output more carefully, sorry.
Andre
_________________________
The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt. ( Bertrand Russell)
|
|
Top
|
|
|
|
#206708 - 2013-02-18 03:32 AM
Re: New Forum Member needs help on using postprep
[Re: Glenn Barnas]
|
applitude
Fresh Scripter
Registered: 2013-02-14
Posts: 18
Loc: Cologne, Germany
|
Glenn,
i've tested the new ppcl.kix the same way as you did, by changing the color attributes successively. Here are what i found out:
- Numerics in Hex-Notation are not formated correctly
- Of course, you did not list them, but the "|", "~" and "^" are not formated as bitwise operators. Any reason for this? You've done it for the more complicated bitwise "&"
All others code parts are formated exactly as expected. Well done!
Andre
_________________________
The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt. ( Bertrand Russell)
|
|
Top
|
|
|
|
#206714 - 2013-02-18 06:49 AM
Re: New Forum Member needs help on using postprep
[Re: Glenn Barnas]
|
applitude
Fresh Scripter
Registered: 2013-02-14
Posts: 18
Loc: Cologne, Germany
|
Sorry Glenn,
but it seems that changing the line to$Ops = "-+*/=~^|" + $1 + $2 + $3 in the Kix2HTM Function will not mark the ~^| as operators.
Andre
_________________________
The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt. ( Bertrand Russell)
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|