You are here: PSPad forum > English discussion forum > Files with long lines are hard to handle
Posted by: Andreas | Date: 2015-02-03 20:46 | IP: IP Logged
v. 4.5.9 (2525)
Hello Jan,
I have a file with a line that's about 55000 chars long. Positioning the cursor somewhere in that line takes time. Working with this file feels like my system is overloaded. Win7, CPU i7, 12GB RAM.
Is this a normal behavior or can you optimize something?
Edited 1 time(s). Last edit at 2015-02-03 20:47 by Andreas.
Posted by: pspad | Date: 2015-02-04 06:37 | IP: IP Logged
Very long lines make problem to PSPad.
Is necessary to have so long lines? Some XML? Did you tried to reformat your file?
Posted by: Andreas | Date: 2015-02-04 14:28 | IP: IP Logged
In this case I had to put a base64 IMG into an HTML file. This for example is the google logo (had to be shortened, as it is not possible to send the hole line here.)
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhoAAAC+CAYAAABzq6b3AAA2jUlEQVRYw+zZy3rTZgLGcTqdQ9uVn2c6CZgQTOcGvJ6SoHDKbmpCyIFDEN21pcWEzl534BtoEDnB7HwFRaE34PWEg5Jtoch38M37yZYt2ZKtk2Nbft/n+a+6quzvyw/5lBDiFGOMMcbYIOJDYIwxxthgoTFpm3lsKbKzZUuze2RVkSHLP7JqSHR25ienj55O//jRRIarCtKmGymyUxzHcRw3qcsyNM49tgqohDTAwkAmEk5ARqNH7fIB9YCGb9P+GdMP/9CRhhSU4zeQ4ziOIzTGZLOb9cLsplUGLKrIRMJpxqcWNEJgIyVoCOCiM7OJj..."/>
www.base64-image.de
This has to be a one liner.
Also sometimes have to open minimized JS or CSS files and only change a small part in it.
Optimization will be fine, but life goes on without
Posted by: pspad | Date: 2015-02-04 15:04 | IP: IP Logged
PSPad knows it directly. You can drag image to your code with pressed CTRL
PSPad will wrap it and you will prevent long line problem
Posted by: Andreas | Date: 2015-02-04 16:23 | IP: IP Logged
Ah, cool, good to know. Don't know that it is allowed to put linebreaks into this value.
BTW PSPad generates
src="data:image/gif;base64,
instead
src="data:image/png;base64,
And for some reason validator tells me this (no error with the one liner):
Quote:line 509 column 66 - Error: Bad value for attribute src on element img: Illegal character in scheme data: not a URL code point.
IMG in browser looks ok. Change gif to png did not resolve the error.
Posted by: pspad | Date: 2015-02-06 08:03 | IP: IP Logged
I don't know why validator mark it as wrong. Which validator does it?
Posted by: carbonize | Date: 2015-02-06 08:51 | IP: IP Logged
I am using PSPad in portable mode and whenever I use this function I get told that the image format is either unsupported or the file is broken. It then creates the code anyway but with one small bug.
border="0"">
A surplus "
--
Carbonize
Posted by: pspad | Date: 2015-02-06 09:47 | IP: IP Logged
What image format do you use? Can you send me some image what causes this problem?
Some animated gif or something like it?
Posted by: Andreas | Date: 2015-02-06 13:33 | IP: IP Logged
pspad:I don't know why validator mark it as wrong. Which validator does it?
Neither do I. Error output is by FF addon HTML validator, but you can test it here validator.w3.org.
Posted by: Andreas | Date: 2015-02-06 13:37 | IP: IP Logged
carbonize:I am using PSPad in portable mode and whenever I use this function I get told that the image format is either unsupported or the file is broken. It then creates the code anyway but with one small bug.border="0"">
A surplus "
I also use the portable mode and no error here. Maybe your image is defect. Check your image e.g. with xnView.
border="0" is not a bug. You can disable it in special settings
DragImgBorder=0
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