テキストエクスプローラ:ハイライト表示された「テキストを表示」の結果をmsワードまたはpdfファイルにエクスポート
コミュニティの皆さん
画像に表示されているように「テキストハイライト」機能を維持しながら、画像に表示されている結果(選択した用語/フレーズのテキストを表示)を単語またはpdf形式にエクスポートする方法はありますか?JSLは完璧でしょう。

再:テキストエクスプローラ:ms wordまたはpdfにハイライト表示された "show text"の結果をエクスポートするhtml = "";
wordlist = {"room", "food", "staff", "clean"};
color = {"FFFF00", "00FFFF", "00FF00", "C0C0FF"};
For Each Row(
html = html || "<H3 id="toc-hId-1420607199">" || Titles || "</H3>"; // H1 or H2 is even bolder
rowtext = Reviews; // rowtext will be modified in the loop to add the color
for( iWord=1,iWord<=nitems(wordlist),iWord++, // each word, one at a time
rowtext = regex(
rowtext, // input to regex
"\!\b("||wordlist[iWord]||")\!\b", // find a word with word boundaries on each side
"<SPAN style="background-color: #"||color[iWord]||"">\1</SPAN>", // \1 is the word
IgnoreCase, GlobalReplace) // match food or Food, and multiple occurrences
);
html = html || rowtext || "<BR /><BR />"; // append each story and some blank lines
);
// add minimal HTML around the doc
html = ""||html||"";
// save and display
filename = savetextfile("$temp/deleteme.html", html);
open(filename);再:テキストエクスプローラ:ms wordまたはpdfにハイライト表示された "show text"の結果をエクスポートするありがとう、これは確かな解決策ですが、JSLレベルは私にとって非常に高いです。「部屋」「食事」「スタッフ」「きれい」という言葉に添付のテーブルのスクリプトを適応させたいのですが、それ以降は自分のテーブルに使用できると思います。事前に感謝します
再:テキストエクスプローラ:ms wordまたはpdfにハイライト表示された "show text"の結果をエクスポートするテキストエクスプローラの「テキストを表示」ウィンドウで色を保存できないことを確認してください。効果を得るためにJSLを書くことができます。
docs = "Text for Words: brown fox
the quick brown fox jumped over the lazy dogs back [1]
quick brown dog [2]
lazy fox jumped [3]
brown the lazy fox [5]";
// pick out the list of special words
wordlist = words(regex(docs,"Text for Words:(.*?)[\!n\!r]","\1")); // {"brown", "fox"}
// insert html into the documents to color the words
color={"FFFF00","00FFFF","00FF00","8080FF"};
for( iWord=1,iWord<=nitems(wordlist),iWord++,
docs = regex( docs, "\!\b("||wordlist[iWord]||")\!\b", "<SPAN style="background-color: #"||color[iWord]||"">\1</SPAN>", GLOBALREPLACE)
);
// insert breaks for newlines
docs = regex(docs,"[\n\r]","<BR />",GLOBALREPLACE);
// add minimal HTML around the doc
docs = ""||docs||"";
// save and display
filename = savetextfile("$temp/deleteme.html", docs);
open(filename);
強調表示された単語でフォーマットされたHTML
再:テキストエクスプローラ:ms wordまたはpdfにハイライト表示された "show text"の結果をエクスポートするあなたはある種のスクリーンキャプチャに戸惑い、それから短期間の修正のためにコピーして貼り付けるでしょうか。 無料のWindows Snipping Toolがあり、Snagitも別の選択肢ですが、それにはコストがかかります。 これらのツールを使用して、必要な画像の部分だけを選択してから、必要に応じて文書にコピーして貼り付けることができます。
HTH