Celestia Syntax Highlighting + Emacs

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
Osprey
Posts: 14
Joined: 09.09.2008
With us: 16 years 2 months

Celestia Syntax Highlighting + Emacs

Post #1by Osprey » 07.12.2008, 21:57

Hello,
Is there emacs's Geeks? I was wrote major mode for editing/viewing ssc, stc, dso catalog files. It support hideshow and imenu (see screenshot)

Image

download:http://www.emacswiki.org/emacs-en/CelsscMode
Last edited by Osprey on 08.12.2008, 06:00, edited 1 time in total.

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Re: Celestia Syntax Highlighting + Emacs

Post #2by t00fri » 07.12.2008, 22:38

Too bad, I used nothing but Emacs for > 15 years. But more recently, emacs simply has become a "museum piece" compared to other excellent editors. So I switched some years ago.

Perhaps your syntax highlighting could be imported into more popular coding editors?
Like notepad++ for Windows or Kate for Linux (powerfull syntax highlighting engine, extensible via xml files.) or... Both allow for entirely customizable highlighting rules. These editors are MUCH easier to customize than emacs...

Fridger
Image

Topic author
Osprey
Posts: 14
Joined: 09.09.2008
With us: 16 years 2 months

Re: Celestia Syntax Highlighting + Emacs

Post #3by Osprey » 08.12.2008, 06:19

Oops, I forget link to download, fixed first post.

:) Yes, other editors are much easy, and they are real editors. emacs have all but have no editor.
I think there no problem to get keywords from here for example.

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Re: Celestia Syntax Highlighting + Emacs

Post #4by chris » 08.12.2008, 21:35

Very cool! I still use emacs for some tasks. Can I put your ssc/stc/dsc mode on the Celestia Wikibook too?

--Chris

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Re: Celestia Syntax Highlighting + Emacs

Post #5by selden » 08.12.2008, 23:00

There's a typo in the .emacs code: .dso should be .dsc (see not oh)
Selden

Topic author
Osprey
Posts: 14
Joined: 09.09.2008
With us: 16 years 2 months

Re: Celestia Syntax Highlighting + Emacs

Post #6by Osprey » 09.12.2008, 09:18

There's a typo in the .emacs code: .dso should be .dsc (see not oh)
fixed

Can I put your ssc/stc/dsc mode on the Celestia Wikibook too?
Why not? Btw, where is official wiki? http://en.wikibooks.org/wiki/Celestia?

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Re: Celestia Syntax Highlighting + Emacs

Post #7by chris » 09.12.2008, 18:06

Osprey wrote:
There's a typo in the .emacs code: .dso should be .dsc (see not oh)
fixed

Can I put your ssc/stc/dsc mode on the Celestia Wikibook too?
Why not? Btw, where is official wiki? http://en.wikibooks.org/wiki/Celestia?

Yes, that's the one.

--Chris


Return to “Development”