Page 1 of 1
(SOLVED)Publish page bug?
Posted: Fri Aug 20, 2021 12:53 am
by ssbbstw
Hi!!
We use the new programming language harbour and run on apache, just like php, you can embed code in web pages.
PHP usage is <?php .... ?>
harbour to use <?prg ...?>
When I publish HTML, WYSIWYG automatically changes my <?prg ... ?> to <?phprg ... ?>
Can it be corrected?

Re: Publish page bug?
Posted: Fri Aug 20, 2021 6:05 am
by Pablo
There is currently no support for harbour, so the software does not understand this syntax.
But I think error is related to the HTML formatting. If you set it to the formatting to 'default' then it should work.
Re: Publish page bug?
Posted: Sat Aug 21, 2021 2:08 pm
by ssbbstw
Pablo wrote: Fri Aug 20, 2021 6:05 am
There is currently no support for harbour, so the software does not understand this syntax.
But I think error is related to the HTML formatting. If you set it to the formatting to 'default' then it should work.
It's okay if you don't know harbour.
However, it should be output according to the source code, right?
What is the default format?
How to set it up?
Re: Publish page bug?
Posted: Sat Aug 21, 2021 2:16 pm
by lummis
Tools>Options>HTML then Formatting at bottom of HTML section (the dropdown which you may have set to beautify or minify)
Re: Publish page bug?
Posted: Sat Aug 21, 2021 3:13 pm
by Pablo
You can change the formatting in Tools -> Options -> HTML. The first option is 'Default'
If the software does not know the syntax of an unknown programming language then it cannot format it.
Re: Publish page bug?
Posted: Sat Aug 21, 2021 3:19 pm
by ssbbstw
lummis wrote: Sat Aug 21, 2021 2:16 pm
Tools>Options>HTML then Formatting at bottom of HTML section (the dropdown which you may have set to beautify or minify)
The default value is 'beautify'. I now try to modify it to 'default'. The output html is normal!
However, the 'beautify' and 'minify' format cannot be used in this way!
Will the developers can solve this problem?
Re: Publish page bug?
Posted: Sat Aug 21, 2021 3:34 pm
by Pablo
The default value is 'beautify'. I now try to modify it to 'default'. The output html is normal!
The default value for new projects is 'default', not 'beautify'
However, the 'beautify' and 'minify' format cannot be used in this way!
Correct, because the software does not know anything about harbour so it does not know what to do with the code.
Note that this is not a 'bug', there is no way to implement support for all unknown languages.
But I will investigate if support for harbour can be added in the future.
Re: Publish page bug?
Posted: Sat Aug 21, 2021 3:51 pm
by ssbbstw
Pablo wrote: Sat Aug 21, 2021 3:34 pm
The default value is 'beautify'. I now try to modify it to 'default'. The output html is normal!
The default value for new projects is 'default', not 'beautify'
However, the 'beautify' and 'minify' format cannot be used in this way!
Correct, because the software does not know anything about harbour so it does not know what to do with the code.
Note that this is not a 'bug', there is no way to implement support for all unknown languages.
But I will investigate if support for harbour can be added in the future.
Thank you for your answer also looking forward to come up with a good solution to this problem!
Re: Publish page bug?
Posted: Sat Sep 04, 2021 1:19 am
by ssbbstw
Today I upgade to v16.4.3 and test it and modify HTML config format to 'beautify', found a problem:
This screen preview source code does not seem to be correct.
Re: Publish page bug?
Posted: Sat Sep 04, 2021 6:01 am
by Pablo
What is the exact problem?
Do you have a demo project?
Maybe you have enabled 'remove PHP from preview'?
Re: Publish page bug?
Posted: Sat Sep 04, 2021 1:53 pm
by ssbbstw
Yes!! Thank you!
Now I unchacke 'Remove PHP code during preview' and all right!!