HTML用program自動改行プログラム
programのソースコードを自動で改行するソフトです。
ソースコードをコピーしてもhtmlとしてコピーできない場合、改行、つまり、brの命令を手打ちしなくてはなりません。
そんな面倒な作業をこのProcessingのソフトで、あっというまにやってくれます。スペースも自動で入れてくれます。
It is software that automatically destroys program source code.
If you can not copy “as html” by copying the source code, you need to process a line feed, that is, “br” command.
Such troublesome work is done by this software of “processing” in an instant. “Space” is also automatically written.

下のプログラムをコピー&ペーストして、ご利用ください。
ソースコードは、こちら↓Source code is here
<span style="font-family: georgia, palatino, serif;">String[] data;
void setup(){
data = loadStrings("文字.txt");
for(int i = 0; i < data.length; i++){
String[] temp = data[i].split("");
data[i] = "";
for(int f = 0; f < temp.length; f++){
println(temp[f]);
if(temp[f].equals( " " ) == true){
temp[f] = "&nbsp";
}
data[i] += temp[f];
}
data[i] += "<br>";
}
saveStrings("文字.txt",data);
exit();
}</span>

⇧このプログラムをProcessingで変換すると、こんな感じのテキストになります。
html用にしたい文字列をコピーして、processingのテキストフォルダに貼り付け、processingを実行、一旦テキストを閉じて、再度開くと、改行命令が自動生成されています。
When you convert this program with Processing, it will be like this .
Copy the character string you want for html, paste it in processing text folder, execute processing, close the text once, and then reopen it, a line feed command is automatically generated.
kohaママの超ピンぼけ動画、ご容赦ください。(´;ω;`)
Koha mom’s super-blurred video, please forgive me.↓
Processingって、こんな利用方法もあるんですね。いいアイデアです。
ありがとうございます!もっとプログラムを作っていきます