我正在使用GPS进行编程。但是我不能在代码中使用unicode字符。我在preferences中将字符集设置为UTF-8。但我仍然无法在代码中键入unicode字符作为注释。谁能告诉我如何在源代码中使用unicode字符?我将非常感谢你的帮助。谢谢!
太阳
发布于 2011-10-03 21:11:30
如果您只是在编辑字段中看到一个框,则需要使用不同的字体来进行GUI和编辑。DejaVu是一个很好的选择,因为它几乎包含所有unicode字符。
设置它们有点依赖于您的操作系统。
发布于 2011-09-30 13:06:16
How ["03C0"] match 's grammar in Annex 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.adb“进行编译。
转到构建|设置|目标|在底部检查语法在命令字段中插入-gnatW8,如:%gnatmake -q -gnatW8 -c -gnats -u %eL -P%PP %X%fp
如果需要的话,检查语义也是如此。
https://stackoverflow.com/questions/7606013
复制相似问题