如何在GNAT编程工作室使用unicode



我正在使用GPS来编程。但是我不能在代码中使用unicode字符。我在首选项中将字符集设置为UTF-8。但是我仍然不能在代码中键入unicode字符作为注释。谁能告诉我如何在源代码中使用unicode字符?我将非常感谢你的帮助。谢谢!

太阳

如何匹配'附件p中的语法?

也许这个问题的答案可以回答你的问题。

你的问题是什么?

1. Can not type in the unicode character.
2. Can copy an unicode character but can not paste in GPS.
3. Can type or paste in GPS, but can not save.
4. Can type or paste in GPS and can save, but can not compile.

我猜你的问题是第4条,然后参考我之前的帖子作为上面的链接。你需要使用"gnatmake -gnatW8 Hello"。编译。


Goto Build | Settings | Targets | Check Syntax在命令栏底部插入-gnatW8,如下所示:%gnatmake -q -gnatW8 -c -gnats -u %eL -P%PP %X %fp

如果您只是在编辑字段中获得一个框,则需要为GUI和编辑使用不同的字体。DejaVu是一个很好的例子,因为它几乎包含了所有unicode字符。

设置它们取决于你的操作系统。

最新更新