D17241: WIP:Disable highlighting after 512 characters on a line.

Kåre Särs kare.sars at iki.fi
Sat Jun 15 20:32:30 BST 2019


On lördag 15 juni 2019 kl. 22:21:30 EEST rhkramer at gmail.com wrote:
> I use kate for editing text, often consisting of fairly long paragraphs,
> which, really, is (unless something has changed) a line.  512 characters
> makes a quite small paragraph.
> 
> I hope there will be ways to both disable that disabling, and increase the
> line limit.
> 
> I have no performance issues with long paragraphs (lines) in (to me) long
> files going up to about 60 MB, using kate 3.8.4 (using kde development
> platform 4.8.4 on Debian Wheezy (my everyday computer)).
> 

The limit is now the number of ranges, so it is not a fixed number of 
characters. The limit is 1024 different ranges. With my test XML file the 
limit was hit after around 5000 characters.

/Kåre

> On Saturday, June 15, 2019 02:59:56 PM Kåre Särs wrote:
> > sars added a comment.
> > 
> >   I tried the patch and it improved the performance really much! :) I was
> > 
> > able to edit a line that contained over a million characters!
> > 
> >   Unfortunately I can't comment on the code too much, as I don't know the
> > 
> > code enough.
> > 
> >   Some general stuff:
> >   
> >   1. Should there be a warning/information-message about why the
> > 
> > highlighting is disabled? 2. Should the line length limit be increased?
> > 
> >   Great work!
> > 
> > REPOSITORY
> > 
> >   R39 KTextEditor
> > 
> > REVISION DETAIL
> > 
> >   https://phabricator.kde.org/D17241
> > 
> > To: cullmann, vkrause, dhaumann, mwolff, sars
> > Cc: zetazeta, mwolff, brauch, kwrite-devel, kde-frameworks-devel,
> > LeGast00n, domson, michaelh, ngraham, bruns, demsking, cullmann, sars,
> > dhaumann






More information about the KWrite-Devel mailing list