<python> [pythonCode] </python>Between tags reminiscent of HTML, Python code can be directly inserted into a KerbalSpace document.
This will only work when the tags appear on their own lines, and does not work for
partial lines of code.
+
--[pythonCode]
+
Immediately after two dashes in a row appear at the start of a line,
+ the line is transcribed directly into the output Python file. This can be used like above,
+ but is intended for single lines which are currently missing counterparts within KerbalSpace.
+ Do not place whitespace after the dashes if it is not meant to be included in the transciption.
\ No newline at end of file
diff --git a/ksdocs/func.html b/ksdocs/func.html
index 184ce87..33a0afa 100644
--- a/ksdocs/func.html
+++ b/ksdocs/func.html
@@ -2,7 +2,7 @@
Functions
-
any way. The language is free to use and examples are available on GitHub. The official
KS to Python compiler will also be maintained on GitHub under my account.
Within this documentation, all parameters will appear as mixedCase, and all
- optional parameters will be enclosed in [square brackets].
+ optional parameters will be enclosed in [square brackets].
+ If you want more advanced documentation or need to clarify anything, ask by messaging me on
+ Steam or on
+ Google+.
\ No newline at end of file
diff --git a/ksdocs/io.html b/ksdocs/io.html
index c8b2083..f0729f3 100644
--- a/ksdocs/io.html
+++ b/ksdocs/io.html
@@ -2,7 +2,7 @@
Input and Output
-
This is the printing function, converting the
contents of the line into an argument for print() in Python.
-
< (storageVariable) [, promptString]
+
< storageVariable [, promptString]
This is the reading function, representing storageVariable = input([promptString]) in Python.
\ No newline at end of file
diff --git a/ksdocs/loops.html b/ksdocs/loops.html
new file mode 100644
index 0000000..4390a2a
--- /dev/null
+++ b/ksdocs/loops.html
@@ -0,0 +1,16 @@
+
+
+
+ Loops and Conditionals
+
Similar to a ternary statement in Python, an entire if / else structure
+ can be placed on one line. Additionally, this does not require colons when only the condition
+ is included, and instead detects only from the indents on the next lines.