(SOLVED)Publish page bug?

This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.

Note that these questions will generally not be answered by the administrators of this forum.
Post Reply
ssbbstw
 
 
Posts: 81
Joined: Fri Feb 03, 2017 9:49 am

(SOLVED)Publish page bug?

Post 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?

Image
Last edited by ssbbstw on Sat Sep 04, 2021 1:54 pm, edited 1 time in total.
I'm come from Taiwan.
User avatar
Pablo
 
Posts: 21569
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Publish page bug?

Post 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.
ssbbstw
 
 
Posts: 81
Joined: Fri Feb 03, 2017 9:49 am

Re: Publish page bug?

Post 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?
I'm come from Taiwan.
lummis
 
 
Posts: 211
Joined: Sun Apr 24, 2011 9:18 am
Location: UK

Re: Publish page bug?

Post by lummis »

Tools>Options>HTML then Formatting at bottom of HTML section (the dropdown which you may have set to beautify or minify)
User avatar
Pablo
 
Posts: 21569
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Publish page bug?

Post 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.
ssbbstw
 
 
Posts: 81
Joined: Fri Feb 03, 2017 9:49 am

Re: Publish page bug?

Post 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?
I'm come from Taiwan.
User avatar
Pablo
 
Posts: 21569
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Publish page bug?

Post 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.
ssbbstw
 
 
Posts: 81
Joined: Fri Feb 03, 2017 9:49 am

Re: Publish page bug?

Post 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!
I'm come from Taiwan.
ssbbstw
 
 
Posts: 81
Joined: Fri Feb 03, 2017 9:49 am

Re: Publish page bug?

Post by ssbbstw »

Today I upgade to v16.4.3 and test it and modify HTML config format to 'beautify', found a problem:

Image

This screen preview source code does not seem to be correct.
I'm come from Taiwan.
User avatar
Pablo
 
Posts: 21569
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Publish page bug?

Post by Pablo »

What is the exact problem?
Do you have a demo project?

Maybe you have enabled 'remove PHP from preview'?
ssbbstw
 
 
Posts: 81
Joined: Fri Feb 03, 2017 9:49 am

Re: Publish page bug?

Post by ssbbstw »

Yes!! Thank you!
Now I unchacke 'Remove PHP code during preview' and all right!!
I'm come from Taiwan.
Post Reply