You are here: PSPad forum > English discussion forum > problem with connecting snippet?
Posted by: Manfred62 | Date: 2013-01-18 16:09 | IP: IP Logged
just tested this in a css file. Add a pseudo class:
type h2, then open snippet via ctrl-space,
now you see h preselected,
remove h with backspace,
type : or click down to pseudo, enter,
2 is deleted,
choose pseudo ..., enter
result: h:first-letter (instead of h2:first-letter)
With a or li, both will be deleted. Typing #myid, then the last letter will be deleted. I have to set a blank and delete the space afterwards.
The same behaviour with class or id snippet. Cannot create ul#test, have to write ul #test.
With class or id it's tolerable, but with pseudo it's wrong.
Other example: when using prefix, there's no problem.
Can write -moz- and add snippet directly. Something like -moz-transition is no problem.
Any idea, how to handle this?
regards Manfred
--
PSPad 4.5.9 (2525)
Posted by: Manfred62 | Date: 2013-01-27 12:34 | IP: IP Logged
now I tried the following. Include Keywords in css.def:
link
active
hover
focus
visited
first
first-link
first-child
last-child
first-letter
before
after
left
right
so I type e.g. li:fi and the popup brings up the options.
But it's not possible to use following keywords style:
:link
:active
:hover
:focus
:visited
:first
:first-link
:first-child
:last-child
:first-letter
:before
:after
:left
:right
this would be easier/faster to use.
@Jan: it's not possible to start keywords with colon?
--
PSPad 4.5.9 (2525)
Posted by: pspad | Date: 2013-01-27 13:29 | IP: IP Logged
Possible is near everything. Each highlighter has defined some stop chars. Stop chars = chars what delimit words.
I would be necessary modify highlighter, but I am afraid it causes stop highlighting correctly.
Another possibility is split stop chars in autocomplete from highlighter.
Posted by: Manfred62 | Date: 2013-01-28 12:07 | IP: IP Logged
Hi Jan
using keywords without colon is not really a problem. So we have to type only one more char to get the pseudo class popping up.
Any idea about the problem (first post) with connecting snippets?
regards Manfred
--
PSPad 4.5.9 (2525)
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