Om de ûnderfining foar jo te ferbetterjen is tydlik de funksjonaliteit dan dizze website troch ûnderhâldswurk beheind. Wannear in artikel jo probleem net oplost en jo in fraach stelle wolle, kin ús stipemienskip jo helpe yn @FirefoxSupport op Twitter en /r/firefox op Reddit.

Sykje yn Support

Mij stipescams. Wy sille jo nea freegje in telefoannûmer te beljen, der in sms nei ta te stjoeren of persoanlike gegevens te dielen. Meld fertochte aktiviteit mei de opsje ‘Misbrûk melde’.

Mear ynfo

Dizze konversaasje is argivearre. Stel in nije fraach as jo help nedich hawwe.

Is there any way to view older text files or set up line wrap? Files do not seem to have LF or CR-LF, so each paragraph is displayed as one line.

  • 1 antwurd
  • 1 hat dit probleem
  • 1 werjefte
  • Lêste antwurd fan cor-el

more options

I would like to convert these older files to html, but seem not to be able to do so. When I was still running windows, I could modify the files using frontpage and it would all come out fine. Now running Ubuntu 10.10. I guess I could install frontpage thru Wine, but have had problems with software in wine.

I would like to convert these older files to html, but seem not to be able to do so. When I was still running windows, I could modify the files using frontpage and it would all come out fine. Now running Ubuntu 10.10. I guess I could install frontpage thru Wine, but have had problems with software in wine.

Alle antwurden (1)

more options

Try a file like this:

<html><head><title>Convert text file to HTML</title></head>
<body>
<h2>Select text file to convert to HTML</h2>
<input id="fileItem" type="file" onchange="processData();" >
<script type="text/javascript" >
function processData(){
 data = document.getElementById('fileItem').files[0].getAsText("utf8");
 data = data.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/\n/g,'<br>\n');
 with(window.open().document){
  write('<html><body><style type="text/css">body {word-wrap:break-word}</style>'+data+'</body></html>');
  close();
 }
}
</script>
</body></html>

Bewurke troch cor-el op