简体   繁体   English

缩进docbook中的文字

[英]Indent the text in docbook

I want to indent my text in the article I am writing in docbook 5. I also need to add colors to my text. 我想在docbook 5中撰写的文章中缩进文字。我还需要为文字添加颜色。 Is that possible? 那可能吗? If so how? 如果可以,怎么办? I tried indenting as follows but it was not visible when I took the html output of it.(Here I tried to align the text "Kerfun" to the center) I have no idea regarding the colour change. 我尝试按如下方式进行缩进,但是在获取其html输出时看不到它。(在这里,我尝试将文本“ Kerfun”对齐到中心),我对变色一无所知。 Can someone please tell me how? 有人可以告诉我如何吗? Where have I gone wrong? 我哪里出问题了?

<dbk:para text-indent="center">Kerfun</dbk:para>
   <dbk:para text-indent="center">
      <dbk:emphasis role="bold">Fadiah</dbk:emphasis>
   </dbk:para>

You haven't specified your OS or toolchain. 您尚未指定操作系统或工具链。

To format your xml: I'd suggest using the " xmllint -format" command 格式化xml:我建议使用“ xmllint -format”命令

To validate your xml: Same command could be used to ensure your document is valid against the docbook schema 验证xml:可以使用相同的命令来确保您的文档对docbook模式有效

To colorize your xml: That very much depends on what editor you use. 着色xml:这很大程度上取决于您使用的编辑器。 Personally I'm a fan of gvim which has XML high-lighting enabled by default. 我个人是gvim的粉丝,该默认情况下启用了XML高亮显示。

Update 更新资料

As stated I'm not a windows guy but 2 minutes of googling lead me to the following: 如前所述,我不是Windows专家,但经过2分钟的谷歌搜索,将我带到以下内容:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM