New version with outline view

This commit is contained in:
Dag Evensberget 2019-12-01 19:36:36 +10:00
parent fdc213e958
commit ac51b494da
5 changed files with 18 additions and 3 deletions

View File

@ -5,5 +5,7 @@ All notable changes to the "swmf" extension will be documented in this file.
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
## [Unreleased]
- Initial release
### 0.0.1
Initial release with syntax highlighting.
### 0.0.2
Added hierarchical outline view.

View File

@ -4,11 +4,14 @@ Syntax highlighting and some code completion for [Space Weather Modelling Framew
Automatically highlights files ending in `.in` and `.IN`.
A document tree is also provided in the outline view.
![highlight and folding demo](images/highlight-demo.png)
## Features
* Syntax highlighting
* Comment/uncomment using `!` as comment character.
* Hierarchical document tree in outline view.
* Code folding between `#BEGIN_COMP` and `#END_COMP` markers.
* Autoclosing of `#BEGIN_COMP`.

12
demo.in
View File

@ -1,13 +1,18 @@
#ECHO
Highlighting demo using Monokai dark theme.
#BEGIN_COMP SC Marker with folding button in margin
#COMMAND Example command with parameters
#USERINPUTBEGIN
#MYCOMMAND Example command with parameters
-10 integer parameter
+1.1e6 float parameter
T Boolean parameter
Hello World string parameter
#USERINPUTEND
COMMAND Commands lacking the # character are comments
15
@ -16,4 +21,9 @@ COMMAND Commands lacking the # character are comments
#COMMAND
500 Comment
#RUN
#ANOTHER_CMD
3.14 Comment
#END

BIN
images/demo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB