我正在打开购物车中的多供应商扩展,我想在 vqmod 的 XML 文件中进行更改。我想在我的一些文件中添加代码。我要添加的代码在 if 和 for 语句之后,所以我需要搜索这些行并添加我的代码。但我才知道 XML 不允许我在文件中搜索多行。任何人都可以在这里帮助我,以便我可以搜索这些行,然后添加我的代码。
1 回答
0
在此处阅读完整的 vqmod wiki https://code.google.com/p/vqmod/wiki/Scripting
您的任务可以使用搜索标签中的 offest 属性来完成,引用自 vqmod wiki
Optional attribute "offset" to work with the position
if the search position is before and offset 3 it will put the add data before the line, 3 lines above the searched line
if the search position is after and offset 3 it will put the add data after the line, 3 lines below the searched line
if the search position is replace and offset 3 it will remove the code from the search line and the next 3 lines and replace it with the add data
if the search position is top and offset 3 it will put the code before the line, 3 lines below the top of the file
if the search position is bottom and offset 3 it will put the code after the line, 3 lines above the bottom of the file
于 2014-02-13T13:49:23.643 回答