From kwrite-devel Thu Jul 19 18:04:46 2007 From: Mirko Stocker Date: Thu, 19 Jul 2007 18:04:46 +0000 To: kwrite-devel Subject: Re: current state of kate highlighting/rendering (i.e. the Big Nasty Message-Id: <200707192004.52035.me () misto ! ch> X-MARC-Message: https://marc.info/?l=kwrite-devel&m=118486834424074 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1577403646==" --===============1577403646== Content-Type: multipart/signed; boundary="nextPart2500460.GRWeIY7NBV"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart2500460.GRWeIY7NBV Content-Type: multipart/mixed; boundary="Boundary-01=_/e6nGB9LFXft+TA" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_/e6nGB9LFXft+TA Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 18 July 2007 23:35:05 Matthew Woehlke wrote: > One would think, but I want to say when I tested it it didn't. I haven't > had time to look at it in a while though. I just checked out a fresh copy of kate, applied the attached patch and the= =20 normal text was working correctly (text color, background color and selecte= d=20 text color). Tested with no highlighting and with a ruby script. What I noticed during all the tests, the 'Background Selected' doesn't work= ,=20 but not even on kate 2.5.7... And by the way, I still can't see the static word wrap marker... :-/ does=20 someone else have this problem too? Thanks Mirko --Boundary-01=_/e6nGB9LFXft+TA Content-Type: text/x-diff; charset="iso-8859-1"; name="dsnormal.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="dsnormal.patch" Index: kate/syntax/katehighlight.cpp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =2D-- kate/syntax/katehighlight.cpp (revision 689956) +++ kate/syntax/katehighlight.cpp (working copy) @@ -252,8 +252,10 @@ textLine->clearAttributes (); =20 // no hl set, nothing to do more than the above cleaning ;) =2D if (noHl) + if (noHl) { + textLine->addAttribute (0, textLine->length(), KateExtendedAttribute::= dsNormal); return; + } =20 // duplicate the ctx stack, only once ! QVector ctx (prevLine->ctxArray()); @@ -485,6 +487,11 @@ } textLine->setNoIndentBasedFolding(noindent); } + + //set the dsNormal attribute if we haven't found anything else + if(textLine->attributesList().empty()) { + textLine->addAttribute (0, textLine->length(), KateExtendedAttribute::= dsNormal); + } } =20 void KateHighlighting::getKateExtendedAttributeList (const QString &schema= , QList &list) --Boundary-01=_/e6nGB9LFXft+TA-- --nextPart2500460.GRWeIY7NBV Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (GNU/Linux) iD8DBQBGn6fD4VMHj1FGBiERAsFYAJwIyuOi6pp789hbOYa7QBhO1+89bwCfaIaL 7VPvw8YKMmjd80/KdZruOx4= =MpxR -----END PGP SIGNATURE----- --nextPart2500460.GRWeIY7NBV-- --===============1577403646== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ KWrite-Devel mailing list KWrite-Devel@kde.org https://mail.kde.org/mailman/listinfo/kwrite-devel --===============1577403646==--