9 macros source-code openoffice
我曾尝试在 OpenOffice.org Writer 中插入源代码作为列表,但它无法以可接受的方式工作。
如果一行空间不够,它会自动将该行拆分为下一行。当然,文档的读者不知道发生了什么并且感到困惑。在这种情况下,有些书会插入一个箭头图标,表示这属于上一行。但是,我找不到任何东西来做到这一点。虽然我可以手动完成,但这不是 500 页文档中的一个选项。
是否有任何解决方案或方法可以解决该问题?也许使用适用于特定段落样式的宏,即“源代码列表段落样式”?
我找到了一个 Extension: Coooder,但这与问题不符。似乎它只做语法高亮,在这种情况下这并不重要。长行并使强制换行可见是问题所在。
这是一种视觉上做到这一点的方法。它在延续的线上显示了一个“缺口”。我不知道如何制作连续字符。
\n\n
在 OpenOffice.org Writer 中:
\n\nSelect the text of the listing\n\nTable > Convert > Text to table\n\nSeparate text at > Paragraph\n\nTable > Select table (keep the whole table selected for all the following steps)\n\nTable > Table properties\n Text flow tab\n Allow row to break across pages and columns > Unchecked\n Borders tab\n Line arrangement > Default > Set no borders\n Background tab\n For > Table\n Background color > Gray 10%\n\nFormat paragraph\n Indents & spacing tab\n Indent > Before text > 0.25\xe2\x80\x9d\n Indent > First line -0.25\xe2\x80\x9d\n Spacing > Below paragraph > 0.1\xe2\x80\x9d\n Text flow tab\n Options > Do not split paragraph > Checked\n Background tab\n Background color > Gray 10%\n\nFormat > Character\n Background > White\nRun Code Online (Sandbox Code Playgroud)\n
| 归档时间: |
|
| 查看次数: |
6586 次 |
| 最近记录: |