text explorer:将突出显示的“show text”结果导出为ms word或pdf
亲爱的社区,
有没有办法将图片中显示的结果(显示所选术语/短语的文本)导出为单词或pdf格式,保持“文本高亮”功能如图所示?JSL将是完美的。

Re:文本浏览器:将突出显示的“显示文本”结果导出为ms word或pdfhtml = "";
wordlist = {"room", "food", "staff", "clean"};
color = {"FFFF00", "00FFFF", "00FF00", "C0C0FF"};
For Each Row(
html = html || "<H3 id="toc-hId-1428026209">" || 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);Re:文本浏览器:将突出显示的“显示文本”结果导出为ms word或pdf谢谢,这是一个肯定的解决方案,但JSL级别对我来说太高了。我可以要求修改附表的脚本,用于“房间”食物“”工作人员“”干净“吗?从那里我想我可以为我的桌子做。许多人提前感谢
Re:文本浏览器:将突出显示的“显示文本”结果导出为ms word或pdf很确定文本浏览器“显示文本”窗口无法保存着色。您可以编写一些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
Re:文本浏览器:将突出显示的“显示文本”结果导出为ms word或pdf您是否愿意接受某种屏幕截图,然后复制并粘贴以进行短期修复。 Windows Snipping Tool是免费的,而Snagit是另一种选择,但这有相关的成本。 您可以使用这些工具仅选择所需图像的一部分,然后根据需要复制并粘贴到文档中。
HTH