亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何為Geany添加Go支持

如何為Geany添加Go支持

Go
素胚勾勒不出你 2021-04-07 17:15:33
我正在嘗試使語法成為重點,并為Geany提供構建選項,有什么建議嗎?
查看完整描述

3 回答

?
幕布斯7119047

TA貢獻1794條經驗 獲得超8個贊

這是史蒂夫·霍斯利(Steve Horsley)發布到golang-nuts的Geany格式說明:


在Geany中,轉到“工具”->“配置文件”->“ filetype_extensions.conf”,然后添加以下新標題:


Go=*.go;

將C定義filetypes.c復制到filedefs / filetypes.Go.conf中:


cp /usr/share/geany/filetypes.c ~/.config/geany/filedefs/filetypes.Go.conf

編輯filetypes.Go.conf并將設置和關鍵字部分更改為此:


[settings]

# default extension used when saving files

extension=go

lexer_filetype=C


[keywords]

# all items must be in one line

primary=break case chan const continue default defer else fallthrough for func go goto if import interface map package range return select struct switch type var

secondary=byte int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 float32 float64 complex64 complex128 uintptr string


查看完整回答
反對 回復 2021-04-26
  • 3 回答
  • 0 關注
  • 528 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號