You are here: PSPad forum > English discussion forum > Question to the board highlighter
Posted by: human | Date: 2017-04-10 07:29 | IP: IP Logged
When addingsource in code tag
all whitespaces within them are removed in the display.
To keep at least the line breaks the board generates multiple<br>
elements but the indentation of code is still not recognizable.
I asume Petr Dvořák wrote the board code and he may be able to change this (but don't know for sure and wouldn't know how to contact him and how to update the board later on), therefore leaving the request here:
* don't generate any<br>
or<p></p>
in parts marked with "code"
* instead use the following style via css:code { white-space: pre; }
Posted by: pspad | Date: 2017-04-10 16:35 | IP: IP Logged
Petr Dvorak isn't available long time already.
I tried to fix CODE in forum myself. Test it.
Posted by: human | Date: 2017-04-11 06:08 | IP: IP Logged
Test 1
;PSPad user HighLighter definition file
[Settings]
Name=Texinfo
HTMLGroup=0
Vectors=0
Label=0
[KeyWords]
@acronym=
@b=
@cite=
@code=
Test 2
identification division.
program-id. hello.
environment division.
configuration section.
special-names.
decimal-point is comma,
console is crt.
data division.
working-storage section.
01 w-var pic is x(01) value is spaces.
procedure division.
main-paragraph.
*>-> Comment line
display "hello world".
stop run.
Edited 1 time(s). Last edit at 2017-04-11 06:11 by human.
Posted by: human | Date: 2017-04-11 06:15 | IP: IP Logged
pspad:Petr Dvorak isn't available long time already.
I tried to fix CODE in forum myself. Test it.
The CSS part of the fix is correct - we now have all the white spaces that is in the code. But this leads to a problem of multitude new lines as these are now used 1:1 (as they should) and the old additional<br>
and<p>
inserted there lead to additional line breaks.
There must not be any generation of<br>
and<p>
inside[code]
-tags (the PHP part seems to be missing).
human
Posted by: human | Date: 2017-04-24 16:31 | IP: IP Logged
friendly ping
Posted by: pspad | Date: 2017-04-24 16:37 | IP: IP Logged
I am sorry, I dont have enough time to do it now
Posted by: human | Date: 2017-04-25 14:47 | IP: IP Logged
pspad:I am sorry, I dont have enough time to do it now
Can you upload the PHP(?)-Source somewhere allowing me to check it and suggest a fix?
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