You are here: PSPad forum > Developer forum - new builds > PSPad unicode 5.0.0 (204) English

PSPad unicode 5.0.0 (204) English

Goto Page: Previous1 2 3 4 Next

#11 Re: PSPad unicode 5.0.0 (204) English

Posted by: pspad | Date: 2017-05-11 09:33 | IP: IP Logged

crimson:
Hi,
I still see the C code explore issue in this version. Is this in you working list or I need to paste the sample code again?

Please help on this. Thanks.

I hope it is fixed. Check next build

Options: Reply | Quote | Up ^


#12 Re: PSPad unicode 5.0.0 (204) English - PHP.DEF and switch statement

Posted by: Andreas | Date: 2017-05-11 18:34 | IP: IP Logged

My PHP.DEF will not work with switch anymore. E.g. I have this two control structures.

[foreach | FOREACH statement]
foreach(§| as $key => $value)
{

}
;
;
[switch | SWITCH statement]
switch($i|)
{
case 'de':
echo 'hallo';
break;

default:
echo 'hello';
}
;
;

I call them with
foreach[shift-space]
switch[shift-space]

foreach works and switch not.

I tested the most other control structures. All work except switch.

What is going wrong here?

Options: Reply | Quote | Up ^


#13 Re: PSPad unicode 5.0.0 (204) English - PHP.DEF and switch statement

Posted by: Andreas | Date: 2017-05-11 18:45 | IP: IP Logged

BTW I just noticed, that the code block in this forum looks realy ugly. I use an extra CSS for forum.pspad.com to correct this. Here it is. Maybe you like to add it to your CSS.

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("forum.pspad.com") {
code {
background: #eee !important;
color: #006 !important;
display: block !important;
font-family: "Courier New", monospace !important;
font-size: .75rem !important;
line-height: .625rem !important;
margin-bottom: -10px !important;
padding: 12px !important;
white-space: pre-wrap !important;
}
code br {
display: none !important;
}
}

See the difference.
Before:
image
After:
image

Options: Reply | Quote | Up ^


#14 Re: PSPad unicode 5.0.0 (204) English - PHP.DEF and switch statement

Posted by: pspad | Date: 2017-05-11 19:16 | IP: IP Logged

OK. I removed definition for code from line pre,code and add your definition for code and code br.

Edited 1 time(s). Last edit at 2017-05-11 19:26 by pspad.

Options: Reply | Quote | Up ^


#15 Re: PSPad unicode 5.0.0 (204) English - PHP.DEF and switch statement

Posted by: pspad | Date: 2017-05-11 19:41 | IP: IP Logged

When I compared your CSS, I found the problem.
In original CSS was line-height for CODE defined as 1.2em, this creates big spaces between lines, There were no additional line breaks.

Options: Reply | Quote | Up ^


#16 Re: PSPad unicode 5.0.0 (204) English - PHP.DEF and switch statement

Posted by: Andreas | Date: 2017-05-11 19:42 | IP: IP Logged

Thank you, that's fine.

Now you can remove every " !important" from the value parts. That was only for my ontop CSS with Stylish. addons.mozilla.org

You also could have tried to leave the original and paste it at the bottom of the default.css. Further down rules overwrite above rules (if the selector is strong enough).

Second solution is, you add another line into the HEAD of your HTML to load a second CSS-file.

<!-- actually -->
<link rel="stylesheet" href="default.css" type="text/css" />
<!-- load a second file -->
<link rel="stylesheet" href="custom.css" type="text/css" />

Options: Reply | Quote | Up ^


#17 Re: PSPad unicode 5.0.0 (204) English - PHP.DEF and switch statement

Posted by: pspad | Date: 2017-05-11 19:57 | IP: IP Logged

I removed it already. Link to mozilla, all !important e.t.c.

Options: Reply | Quote | Up ^


#18 Re: PSPad unicode 5.0.0 (204) English - PHP.DEF and switch statement

Posted by: Andreas | Date: 2017-05-11 20:51 | IP: IP Logged

pspad:
When I compared your CSS, I found the problem.
In original CSS was line-height for CODE defined as 1.2em,

No, the problem are the BR tags. They are not neccessary. Normaly code comes into a PRE tag, this will show text as is. Here code is in CODE tag. But with CSS you can set it to act like a PRE tag - white-space:pre-wrap;.

The second magic is to hide the BR tags - display:none;.

Normaly line-height gets no unit - line-height:1.4;. Means 140% from elements font-size. 1.4em also means 140%. 1.4rem means 140% of browsers default font-size (rem = root em, normaly 16px (x 1.4 = 22.4px).

Fiddle playground: jsfiddle.net

Options: Reply | Quote | Up ^


#19 Re: PSPad unicode 5.0.0 (204) English

Posted by: crimson | Date: 2017-05-12 00:34 | IP: IP Logged

pspad:
crimson:
Hi,
I still see the C code explore issue in this version. Is this in you working list or I need to paste the sample code again?

Please help on this. Thanks.

I hope it is fixed. Check next build

Sure. Will check this, thanks a lot.

Options: Reply | Quote | Up ^


#20 Re: PSPad unicode 5.0.0 (204) English

Posted by: programmer9 | Date: 2017-05-12 10:42 | IP: IP Logged

Find in Files still has the problem with not showing the selected text in the Text to Find box when a longer version of the selected text is already in the drop-down list of previously searched items.

To re-cap:

If the text 12345 is in the list of previously searched items but 1234 isn't, then selecting (highlighting) 1234 and using the find in files tool offers 12345 in the Text to Find box

(If 1234 and 12345 are both in the list of previously searched items there is no problem)

Options: Reply | Quote | Up ^


Goto Page: Previous1 2 3 4 Next





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