Jump to content

[WIN] the kOS IDE - Current version 0.33


SolarLiner

Recommended Posts

EDIT 2014/05/18: kOS IDE is live again!

kos_ide_windowstate.png

The kOS IDE was design for the kOS Scriptable Autopilot in order to give you a comfortable editing software to get the best of this mod.

Special Note: Superb icon made and integrated !

As for the 0.33 version, options are not saved. You have to change them each time. Config file will come with 0.40.

Features (Not implemented; Partially implemented and/or in testing; Fully implemented and stable) :

- Syntax colouring (obviously ^^)

- Saved tag (little * on the title)

- Opening via Command Lines Arguments (Open With -> kOS IDE)

- Export as HTML/BB Code

- Auto completion

- Saved configuration

- Smart Indent - 95%

- Variable tracking - 85%

- File content watching (warns you when file is updated)

- Error checking

- Snippets

Changelog (see the Milestones to check where we are from next release)


[B]0.37 ([url=https://github.com/SolarLiner/kOS-IDE/releases/tag/v0.37]Release Candidate[/url])[/B]
- Savable config
- Updated keywords for kOS v0.12
- Variable tracking
- Ãœber-comment stripper(although not triggered manually)
- Icons for keywords types ("main" and "bus" ones, and variables)

[B]0.35 (internal build)[/B]
- Comment stripper with ability to load back non-stripped version
- Config for Global Options

[b]0.34 (internal build)[/b]
- New File Loader dialog
- Comment Stripper when file size > 10k
- Export in File as Raw Text/HTML
- General Options (no config file yet)
- Possible connection to the kOS Store website

[b]0.33[/b]:
- [COLOR="Blue"]set [/COLOR][COLOR="Black"]NewFeature [/COLOR][COLOR="Blue"]to [/COLOR][COLOR="Red"]"BB Code !!!!"[/COLOR][COLOR="Black"].[/COLOR]
- Public release, including evrything to this.

[b]0.32 (internal build)[/b]
- Creations of options
- Syntax colouring amelioration (faster)
- Save tag

[b]0.31 (internal build)[/b]
- Sketches of a file system watcher (then my HDD broke )
- HTML exporter (using built-in Scintilla exporter, might try to code my own in case of big bugs here)
- Variable "pseudo"-tracker
- Command line argument opening

[b]0.30[/b]: Initial release
- Syntax colouring
- Auto completion

DOWNLOAD

Release candidates (current: v0.37RC @ 03a0a)

Current released version: 0.33.5005b (rev 28813)

Latest build version: 0.37.5252 (rev 31913)

GitHub Repository (License: GPL v3)

Stay here for more development news and please feedback and add your suggestions if any ! :cool:

Happy autopilot crashings! :sticktongue:

Edited by SolarLiner
Updating to change to new repo
Link to comment
Share on other sites

It seems like it would be simpler to make a User-Defined Language preset for Notepad++, but I'm not sure.

Well, sure, but it doesn't account for me as practising skills ;)

And Notepad++ has no custom code snippets and syntax checking. Notepad ++ is a text editor, not an IDE.

Link to comment
Share on other sites

Off to a good start so far! Just a heads up: you need to include the ScintillaNET copyright notice as a readme file or similar in the zip if you're going to be distributing ScintillaNET binaries.

Whoops ! Changed, as well as some things in the code (late late build, sleep time was close). You don't really need to redownload it, as it doesn't change big things (just the filters in the file dialogs and the "smart indent" feature).

Link to comment
Share on other sites

What is the "Smart Indent"? Does this mean that the code will automatically indent certain sections of the code?

If so, can this be an option that we can turn off, please?

Also, it would be really, really nice if it would detect that the file has been updated and either alert us, or alert us and offer to refresh to the new version. Because, you know, saving over stuff kinda sucks.

(Or maybe I should just edit from either KSP or this awesome IDE instead of both...)

Link to comment
Share on other sites

The Smart Indent is, indeed, a method of auto indenting.

It will indent the new line after a {. For now you can't change settings, but once I figure out how to get my Find Settings control working.

But it'll take sometime to get settings right, as you need a config file, and a major rework of the code ... But now that I "discovered" the power of the get and set methods*, I can be quick :)

*You can do whatever you want when you try to access a variable. So for example, when you're opening a file, it sets the filename, thus triggering the "set" function of the variable, refreshing the title of the window.

For the file watching, I actually started setting something like that.

It'll be Notepad++ style, where when you get the focus back on the window it'll tell you that a change was made and ask if you want to update the text or not. If not, it will tell you that the file is unsaved (maybe an asterix on the window title, but I've yet to implement the UI feedback)

Edited by SolarLiner
Link to comment
Share on other sites

The Smart Indent is, indeed, a method of auto indenting.

It will indent the new line after a {. For now you can't change settings, but once I figure out how to get my Find Settings control working.

But it'll take sometime to get settings right, as you need a config file, and a major rework of the code ... But now that I "discovered" the power of the get and set methods*, I can be quick :)

As long as the ability to turn it off (or set custom settings for it) is coming, I can live with it. I'm just picky about my indenting style. Got drilled into me by an early professor, and anything else just feels wrong, and the inconsistent way tabs are displayed across programs irks me as well.

For the file watching, I actually started setting something like that.

It'll be Notepad++ style, where when you get the focus back on the window it'll tell you that a change was made and ask if you want to update the text or not. If not, it will tell you that the file is unsaved (maybe an asterix on the window title, but I've yet to implement the UI feedback)

Sounds good. I like not accidentally overwriting my files.

Edit:

Can you start your line numbering at 0? kOS starts at line 0, so when it reports an error on a line number, it would be nice to look at the same line number on kIDE.

Edited by razark
Link to comment
Share on other sites

As long as the ability to turn it off (or set custom settings for it) is coming, I can live with it. I'm just picky about my indenting style. Got drilled into me by an early professor, and anything else just feels wrong, and the inconsistent way tabs are displayed across programs irks me as well.

Coding is an art where everyone has its styles :)

Unfortunately it will not come with the next version (others features ahead), but for the 0.5 or 0.45 it will be there :)

Can you start your line numbering at 0? kOS starts at line 0, so when it reports an error on a line number, it would be nice to look at the same line number on kIDE.

Good catch ! Changed that, thanks to you !

EDIT: If you speak about the lines in the margin at the left, it is Scintilla related, and I'll see if the start index can be changed.

Okay, speaking of releases, one is coming in short time, whenever I get a better auto correction code and tweaked a little the File Watcher.

Also, if someone can make me a good icon for the soft it would be awesome ! :D

Edited by SolarLiner
Link to comment
Share on other sites

Test from the BB Code exporter:


[COLOR="Blue"]set[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]tgt[/COLOR][COLOR="Black"] [/COLOR][COLOR="Blue"]to[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]VESSEL[/COLOR][COLOR="Black"]([/COLOR][COLOR="Red"]"Kerbal X"[/COLOR][COLOR="Black"]).[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]set[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]tgtalt[/COLOR][COLOR="Black"] [/COLOR][COLOR="Blue"]to[/COLOR][COLOR="Black"] [/COLOR][COLOR="Orange"]150.[/COLOR][COLOR="Black"]

[/COLOR][COLOR="Blue"]set[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]p8[/COLOR][COLOR="Black"] [/COLOR][COLOR="Blue"]to[/COLOR][COLOR="Black"] [/COLOR][COLOR="Orange"]8000.[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]set[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]p6[/COLOR][COLOR="Black"] [/COLOR][COLOR="Blue"]to[/COLOR][COLOR="Black"] [/COLOR][COLOR="Orange"]9500.[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]set[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]p4[/COLOR][COLOR="Black"] [/COLOR][COLOR="Blue"]to[/COLOR][COLOR="Black"] [/COLOR][COLOR="Orange"]12000.[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]set[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]p2[/COLOR][COLOR="Black"] [/COLOR][COLOR="Blue"]to[/COLOR][COLOR="Black"] [/COLOR][COLOR="Orange"]20000.[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]set[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]pp[/COLOR][COLOR="Black"] [/COLOR][COLOR="Blue"]to[/COLOR][COLOR="Black"] [/COLOR][COLOR="Orange"]30000.[/COLOR][COLOR="Black"]

[/COLOR][COLOR="Blue"]set[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]random[/COLOR][COLOR="Black"] [/COLOR][COLOR="Blue"]to[/COLOR][COLOR="Black"] [/COLOR][COLOR="Orange"]3216546542638.[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]set[/COLOR][COLOR="Black"] [/COLOR][COLOR="Blue"]target[/COLOR][COLOR="Black"] [/COLOR][COLOR="Blue"]to[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]tgt[/COLOR][COLOR="Black"].[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]set[/COLOR][COLOR="Black"] [/COLOR][COLOR="Purple"]throttle[/COLOR][COLOR="Black"] [/COLOR][COLOR="Blue"]to[/COLOR][COLOR="Black"] [/COLOR][COLOR="Orange"]1.[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]print[/COLOR][COLOR="Black"] [/COLOR][COLOR="Red"]"Selected target: "[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]+[/COLOR][COLOR="Black"] [/COLOR][COLOR="Blue"]target[/COLOR][COLOR="Black"]:[/COLOR][COLOR="Purple"]name[/COLOR][COLOR="Black"].[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]wait[/COLOR][COLOR="Black"] [/COLOR][COLOR="Orange"]1.[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]print[/COLOR][COLOR="Black"] [/COLOR][COLOR="Red"]"start in 5 seconds"[/COLOR][COLOR="Black"].[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]wait[/COLOR][COLOR="Black"] [/COLOR][COLOR="Orange"]5.[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Purple"]stage[/COLOR][COLOR="Black"].[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]until[/COLOR][COLOR="Black"] [/COLOR][COLOR="Purple"]altitude[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]>[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]p8[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]{[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]lock[/COLOR][COLOR="Black"] [/COLOR][COLOR="Purple"]steering[/COLOR][COLOR="Black"] [/COLOR][COLOR="Blue"]to[/COLOR][COLOR="Black"] [/COLOR][COLOR="Purple"]up[/COLOR][COLOR="Black"].[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Black"]}[/COLOR][COLOR="Black"]

[/COLOR][COLOR="Blue"]print[/COLOR][COLOR="Black"] [/COLOR][COLOR="Red"]"Pitch program !"[/COLOR][COLOR="Black"].[/COLOR][COLOR="Black"]

[/COLOR][COLOR="Blue"]until[/COLOR][COLOR="Black"] [/COLOR][COLOR="Purple"]altitude[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]>[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]p6[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]{[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]lock[/COLOR][COLOR="Black"] [/COLOR][COLOR="Purple"]steering[/COLOR][COLOR="Black"] [/COLOR][COLOR="Blue"]to[/COLOR][COLOR="Black"] [/COLOR][COLOR="Purple"]up[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]+[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]R[/COLOR][COLOR="Black"]([/COLOR][COLOR="Orange"]0[/COLOR][COLOR="Black"],[/COLOR][COLOR="Black"] [/COLOR][COLOR="Orange"]80[/COLOR][COLOR="Black"],[/COLOR][COLOR="Black"] [/COLOR][COLOR="Orange"]0[/COLOR][COLOR="Black"]).[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Black"]}[/COLOR][COLOR="Black"]

[/COLOR][COLOR="Blue"]print[/COLOR][COLOR="Black"] [/COLOR][COLOR="Red"]"Mark 60 !"[/COLOR][COLOR="Black"].[/COLOR][COLOR="Black"]

[/COLOR][COLOR="Blue"]until[/COLOR][COLOR="Black"] [/COLOR][COLOR="Purple"]altitude[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]>[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]p4[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]{[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]lock[/COLOR][COLOR="Black"] [/COLOR][COLOR="Purple"]steering[/COLOR][COLOR="Black"] [/COLOR][COLOR="Blue"]to[/COLOR][COLOR="Black"] [/COLOR][COLOR="Purple"]up[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]+[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]R[/COLOR][COLOR="Black"]([/COLOR][COLOR="Orange"]0[/COLOR][COLOR="Black"],[/COLOR][COLOR="Black"] [/COLOR][COLOR="Orange"]60[/COLOR][COLOR="Black"],[/COLOR][COLOR="Black"] [/COLOR][COLOR="Orange"]0[/COLOR][COLOR="Black"]).[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Black"]}[/COLOR][COLOR="Black"]

[/COLOR][COLOR="Blue"]print[/COLOR][COLOR="Black"] [/COLOR][COLOR="Red"]"Passed "[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]+[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]p4[/COLOR][COLOR="Black"] [/COLOR][COLOR="Black"]+[/COLOR][COLOR="Black"] [/COLOR][COLOR="Red"]"m !"[/COLOR][COLOR="Black"].[/COLOR][COLOR="Black"]

until altitude > p2 {
lock steering to up + R(0, 40, 0).
}

print "Almost there !".

until altitude > pp {
lock steering to up + R(0, 20, 0).
}

print "End of pitch program ! Waiting ApA...".

until apoapsis > tgtalt {
lock steering to prograde.
}[/COLOR]

Link to comment
Share on other sites

Yay, a new version!

Coding is an art where everyone has its styles :)

And they're all wrong, except mine.

EDIT: If you speak about the lines in the margin at the left, it is Scintilla related, and I'll see if the start index can be changed.

Yeah, I did mean the ones on the left.

Test from the BB Code exporter:

Is it my imagination, orisitmissingsomething?

Link to comment
Share on other sites


[COLOR="Blue"]set [/COLOR][COLOR="Black"]tgt [/COLOR][COLOR="Blue"]to [/COLOR][COLOR="Black"]VESSEL[/COLOR][COLOR="Black"]([/COLOR][COLOR="Red"]"Kerbal X"[/COLOR][COLOR="Black"]).[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]set [/COLOR][COLOR="Black"]tgtalt [/COLOR][COLOR="Blue"]to [/COLOR][COLOR="Orange"]150.[/COLOR][COLOR="Black"]

[/COLOR][COLOR="Blue"]set [/COLOR][COLOR="Black"]p8 [/COLOR][COLOR="Blue"]to [/COLOR][COLOR="Orange"]8000.[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]set [/COLOR][COLOR="Black"]p6 [/COLOR][COLOR="Blue"]to [/COLOR][COLOR="Orange"]9500.[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]set [/COLOR][COLOR="Black"]p4 [/COLOR][COLOR="Blue"]to [/COLOR][COLOR="Orange"]12000.[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]set [/COLOR][COLOR="Black"]p2 [/COLOR][COLOR="Blue"]to [/COLOR][COLOR="Orange"]20000.[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]set [/COLOR][COLOR="Black"]pp [/COLOR][COLOR="Blue"]to [/COLOR][COLOR="Orange"]30000.[/COLOR][COLOR="Black"]

[/COLOR][COLOR="Blue"]set [/COLOR][COLOR="Black"]random [/COLOR][COLOR="Blue"]to [/COLOR][COLOR="Orange"]3216546542638.[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]set target to [/COLOR][COLOR="Black"]tgt[/COLOR][COLOR="Black"].[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]set [/COLOR][COLOR="Purple"]throttle [/COLOR][COLOR="Blue"]to [/COLOR][COLOR="Orange"]1.[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]print [/COLOR][COLOR="Red"]"Selected target: " [/COLOR][COLOR="Black"]+ [/COLOR][COLOR="Blue"]target[/COLOR][COLOR="Black"]:[/COLOR][COLOR="Purple"]name[/COLOR][COLOR="Black"].[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]wait [/COLOR][COLOR="Orange"]1.[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]print [/COLOR][COLOR="Red"]"start in 5 seconds"[/COLOR][COLOR="Black"].[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]wait [/COLOR][COLOR="Orange"]5.[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Purple"]stage[/COLOR][COLOR="Black"].[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]until [/COLOR][COLOR="Purple"]altitude [/COLOR][COLOR="Black"]> [/COLOR][COLOR="Black"]p8 [/COLOR][COLOR="Black"]{[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]lock [/COLOR][COLOR="Purple"]steering [/COLOR][COLOR="Blue"]to [/COLOR][COLOR="Purple"]up[/COLOR][COLOR="Black"].[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Black"]}[/COLOR][COLOR="Black"]

[/COLOR][COLOR="Blue"]print [/COLOR][COLOR="Red"]"Pitch program !"[/COLOR][COLOR="Black"].[/COLOR][COLOR="Black"]

[/COLOR][COLOR="Blue"]until [/COLOR][COLOR="Purple"]altitude [/COLOR][COLOR="Black"]> [/COLOR][COLOR="Black"]p6 [/COLOR][COLOR="Black"]{[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]lock [/COLOR][COLOR="Purple"]steering [/COLOR][COLOR="Blue"]to [/COLOR][COLOR="Purple"]up [/COLOR][COLOR="Black"]+ [/COLOR][COLOR="Black"]R[/COLOR][COLOR="Black"]([/COLOR][COLOR="Orange"]0[/COLOR][COLOR="Black"], [/COLOR][COLOR="Orange"]80[/COLOR][COLOR="Black"], [/COLOR][COLOR="Orange"]0[/COLOR][COLOR="Black"]).[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Black"]}[/COLOR][COLOR="Black"]

[/COLOR][COLOR="Blue"]print [/COLOR][COLOR="Red"]"Mark 60 !"[/COLOR][COLOR="Black"].[/COLOR][COLOR="Black"]

[/COLOR][COLOR="Blue"]until [/COLOR][COLOR="Purple"]altitude [/COLOR][COLOR="Black"]> [/COLOR][COLOR="Black"]p4 [/COLOR][COLOR="Black"]{[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]lock [/COLOR][COLOR="Purple"]steering [/COLOR][COLOR="Blue"]to [/COLOR][COLOR="Purple"]up [/COLOR][COLOR="Black"]+ [/COLOR][COLOR="Black"]R[/COLOR][COLOR="Black"]([/COLOR][COLOR="Orange"]0[/COLOR][COLOR="Black"], [/COLOR][COLOR="Orange"]60[/COLOR][COLOR="Black"], [/COLOR][COLOR="Orange"]0[/COLOR][COLOR="Black"]).[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Black"]}[/COLOR][COLOR="Black"]

[/COLOR][COLOR="Blue"]print [/COLOR][COLOR="Red"]"Passed " [/COLOR][COLOR="Black"]+ [/COLOR][COLOR="Black"]p4 [/COLOR][COLOR="Black"]+ [/COLOR][COLOR="Red"]"m !"[/COLOR][COLOR="Black"].[/COLOR][COLOR="Black"]

[/COLOR][COLOR="Blue"]until [/COLOR][COLOR="Purple"]altitude [/COLOR][COLOR="Black"]> [/COLOR][COLOR="Black"]p2 [/COLOR][COLOR="Black"]{[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]lock [/COLOR][COLOR="Purple"]steering [/COLOR][COLOR="Blue"]to [/COLOR][COLOR="Purple"]up [/COLOR][COLOR="Black"]+ [/COLOR][COLOR="Black"]R[/COLOR][COLOR="Black"]([/COLOR][COLOR="Orange"]0[/COLOR][COLOR="Black"], [/COLOR][COLOR="Orange"]40[/COLOR][COLOR="Black"], [/COLOR][COLOR="Orange"]0[/COLOR][COLOR="Black"]).[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Black"]}[/COLOR][COLOR="Black"]

[/COLOR][COLOR="Blue"]print [/COLOR][COLOR="Red"]"Almost there !"[/COLOR][COLOR="Black"].[/COLOR][COLOR="Black"]

[/COLOR][COLOR="Blue"]until [/COLOR][COLOR="Purple"]altitude [/COLOR][COLOR="Black"]> [/COLOR][COLOR="Black"]pp [/COLOR][COLOR="Black"]{[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]lock [/COLOR][COLOR="Purple"]steering [/COLOR][COLOR="Blue"]to [/COLOR][COLOR="Purple"]up [/COLOR][COLOR="Black"]+ [/COLOR][COLOR="Black"]R[/COLOR][COLOR="Black"]([/COLOR][COLOR="Orange"]0[/COLOR][COLOR="Black"], [/COLOR][COLOR="Orange"]20[/COLOR][COLOR="Black"], [/COLOR][COLOR="Orange"]0[/COLOR][COLOR="Black"]).[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Black"]}[/COLOR][COLOR="Black"]

[/COLOR][COLOR="Blue"]print [/COLOR][COLOR="Red"]"End of pitch program ! Waiting ApA..."[/COLOR][COLOR="Black"].[/COLOR][COLOR="Black"]

[/COLOR][COLOR="Blue"]until [/COLOR][COLOR="Purple"]apoapsis [/COLOR][COLOR="Black"]> [/COLOR][COLOR="Black"]tgtalt [/COLOR][COLOR="Black"]{[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Blue"]lock [/COLOR][COLOR="Purple"]steering [/COLOR][COLOR="Blue"]to [/COLOR][COLOR="Purple"]prograde[/COLOR][COLOR="Black"].[/COLOR][COLOR="Black"]
[/COLOR][COLOR="Black"]}[/COLOR]

Way better. All problems solved. Now to the settings !

Edited by SolarLiner
Link to comment
Share on other sites

One problem it has is that it doesn't know when a period/full stop should be yellow (decimal) or black (terminator). It is currently going yellow if it is directly *after* a number; it should only go yellow if it is directly *before* a number.

Also, it turns comments black. For readability, it would be nice if they were green or something.

Link to comment
Share on other sites

One problem it has is that it doesn't know when a period/full stop should be yellow (decimal) or black (terminator). It is currently going yellow if it is directly *after* a number; it should only go yellow if it is directly *before* a number.

Also, it turns comments black. For readability, it would be nice if they were green or something.

Great catch for the terminator ! But this is a *unresolvable* bug because of the way Scintilla works with numbers. For him, a period after a number is the decimal separator. So I cannot change directly that, or I'll have to change the decimal separator char. But then it will not colour properly in a regular decimal number.

Huh, comments were working for me... Maybe because I didn't tested the proper "release" version, only with test builds... But then it is weird. I'm at it ...

Link to comment
Share on other sites

People are talking about comments. Are there comments? The kOS langauge doesn't have them but does this IDE add them (and then presumably stripping them out as it publishes the code to kOS).

What do they look like?

I ask because I developed my own homebrewed comment system for my development that does that. I edit a file I call blah.ksc (KSC for KOS source Code), and then I run a little Perl script that reads through all my .ksc files, filters the comments out of them, and puts the result into .txt files (which kOS will use). I'm considering also adding a variable name shortener and de-indenter to it, thereby allowing me to write nice pretty code with long variable names and good indentation and comments, that then gets crunched down to a tighter form for KOS to execute. This is because it feels a bit unfair that the 10k limit on a volume penalizes me for writing readable code.

Does this tool have that sort of feature in it? If so it might be enough to make me want to use it despite being an old guy with typing fingers trained to use vi.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...