new language support

238 views
Skip to first unread message

Andrew Z

unread,
Aug 27, 2012, 8:40:12 AM8/27/12
to scite-i...@googlegroups.com

Hello,
a quick question please.  how difficult is it to add the support of GO ( golang.org)? Where "Support" is - all regular editor functionality + code snippets, autocompletion, jump to declaration/ definition of variable/function and back, build, compilation and GDB integration?
thank you
AZ

Philippe Lhoste

unread,
Aug 27, 2012, 9:08:07 AM8/27/12
to scite-i...@googlegroups.com
On 27/08/2012 14:40, Andrew Z wrote:
> a quick question please. how difficult is it to add the support of GO ( golang.org
> <http://golang.org>)? Where "Support" is -
> all regular editor functionality +

Of course, you have that out of the box.

> code snippets, autocompletion,

SciTE allows this (abbreviation expansion, etc.)

> jump to declaration/ definition of variable/function and back,

SciTE doesn't have that out of the box. It isn't an IDE, but a "simple" editor...
Might be done with Lua scripts, but that's lot of work!

> build, compilation and GDB integration?

SciTE allows to run external programs without problems.
There is also an extension allowing to debug within SciTE.

You forgot (or was it implicit from above?) proper syntax highlighting for the language.
Three solutions:
- Select an existing lexer for a language whose syntax is close enough of your language.
Then you can create a properties files to take in account the specific language keywords
and settings, referring to the other lexer. It is easy and fast, appropriate for a quick
start, but rarely entirely satisfying. Thus, the other solutions:
- Write a lexer in Lua. Good for prototyping, no need to have a compiler, etc.
- Write a lexer in C++ for Scintilla. The best solution as it will benefit all users with
the best performance and it will be used in non-SciTE editors using Scintilla (like
Notepad++).

--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --



Andrew Z

unread,
Aug 27, 2012, 10:39:24 AM8/27/12
to scite-i...@googlegroups.com
thank you Philippe.
I think that having the ability to jump to (say) definitions is important time saving feature. I guess i'll keep on searching.
AZ


--
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest@googlegroups.com.
To unsubscribe from this group, send email to scite-interest+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en.


Andreas Tscharner

unread,
Aug 28, 2012, 1:45:29 AM8/28/12
to scite-i...@googlegroups.com
On 27.08.2012 14:40, Andrew Z wrote:
> Hello,
> a quick question please. how difficult is it to add the support of GO (
> golang.org <http://golang.org>)? Where "Support" is - all regular editor
> functionality + code snippets, autocompletion, jump to declaration/
> definition of variable/function and back, build, compilation and GDB
> integration?

I think geany is more what you are looking for: http://www.geany.org
geany is based on scintilla.

Best regards
Andreas
--
Andreas Tscharner <sterne...@gmail.com>
----------------------------------------------------------------------
"Intruder on level one. All Aliens please proceed to level one."
-- Call in "Alien: Resurrection"

steve donovan

unread,
Aug 28, 2012, 2:01:20 AM8/28/12
to scite-i...@googlegroups.com
On Mon, Aug 27, 2012 at 4:39 PM, Andrew Z <for...@gmail.com> wrote:
> I think that having the ability to jump to (say) definitions is important

It is indeed. I did an extension for SciTE using gocode

https://groups.google.com/forum/?fromgroups#!searchin/scite-interest/go$20support/scite-interest/fjsrwOzAjwA/Hocl7hKJXhIJ

I've also posted a patched cpp.properties file for Go support.

steve d.
Reply all
Reply to author
Forward
0 new messages