使用制表插件
如何修改这个…
pt1 = [0, 1, 0]
pt2 = [0.588, -0.809, 0]
pt3 = [-0.951, 0.309, 0]
pt4 = [0.951, 0.309, 0]
pt5 = [-0.588, -0.809, 0]
…使其看起来像这样…
pt1 = [ 0, 1, 0]
pt2 = [ 0.588, -0.809, 0]
pt3 = [-0.951, 0.309, 0]
pt4 = [ 0.951, 0.309, 0]
pt5 = [-0.588, -0.809, 0]
…使用 Tabularize 插件?这都是关于正则表达式的,我找不到适合这种情况的正则表达式。
How can modify this…
pt1 = [0, 1, 0]
pt2 = [0.588, -0.809, 0]
pt3 = [-0.951, 0.309, 0]
pt4 = [0.951, 0.309, 0]
pt5 = [-0.588, -0.809, 0]
…to make it look like this…
pt1 = [ 0, 1, 0]
pt2 = [ 0.588, -0.809, 0]
pt3 = [-0.951, 0.309, 0]
pt4 = [ 0.951, 0.309, 0]
pt5 = [-0.588, -0.809, 0]
…using the Tabularize plugin? It's all about regular expressions and I could not find one that works in this case.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
当我尝试彼得的建议时,我把它设置
为逗号后的间距不太正确,所以我稍微修改了它。
I make it this
The spacing after the commas isn't quite right when I try Peter's suggestion, so I modified it slightly.
不使用 Tabularize 插件,而是使用 Align 插件:
说明:
=
、[
、、
、、
和]
)。p11000
)P00110
)W
保留缩进Not using the Tabularize plugin, but the Align plugin:
Explanation:
=
,[
,,
,,
and]
).p11000
)P00110
)W
preserves indentation这很好用:
This works nicely: