如何在Xtext上使用Whitespaces设置文本
我试图设定一些类似的东西:
问题: “我的问题:你几岁”答案=答案 ;
答案:value = id;
但是,不可能用白色空间进行quut缩的文本,有什么方法可以做到吗?
I'm trying to set somethin like:
Question:
'My question: How old are you' answer=Answer
;
Answer: value=ID;
But its not possible to se a quuoted text with whitespaces, there is any way to do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在此处的问题上使用字符串
,您将始终在声明的问题和答案之后添加“我的问题”。然后,DSL可以看起来像这样:
You can use STRING on your question
Here you'll always add "My question " following your declared question and answer. The DSL could then look like this: