Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

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 件の返信
  • 1 人がこの問題に困っています
  • 1 回表示
  • 最後の返信者: 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.

すべての返信 (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>

この投稿は cor-el により に変更されました