Skip to content

Commit f8978b5

Browse files
authored
Merge pull request #50 from Joe7M/master
Add vim syntax highlighting
2 parents 942ad56 + fe9aca7 commit f8978b5

23 files changed

+151
-49
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ To start editing:
3535
git clone https://github.com/smallbasic/smallbasic.github.io.git
3636
git clone https://github.com/smallbasic/smallbasic.samples.git
3737
cd smallbasic.github.io/_build
38-
export SAMPLE = PATH_TO_SMALLBASIC_SAMPLES
38+
export SAMPLE=PATH_TO_SMALLBASIC_SAMPLES
3939
make clean
4040
make
4141
```

_build/pages/language_support.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ Contents
1818
#. [Micro](/pages/language_support_micro.html)
1919
#. [nano](/pages/language_support_nano.html)
2020
#. [Sublime Text](/pages/language_support_sublimetext.html)
21+
#. [vim](/pages/language_support_vim.html)
2122
#. [Visual Studio Code](/pages/language_support_vscode.html)
2223
:::

_build/pages/language_support_atom.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ _Atom was released from beta, as version 1.0, on 25 June 2015. Its developers ca
1212
for the 21st Century", as it is fully customizable in HTML, CSS, and JavaScript."
1313
([wikipedia](https://en.wikipedia.org/wiki/Atom_(text_editor)))_
1414

15-
![Example](https://github.com/Joe7M/smallbasic.atom.syntaxcoloring/raw/main/Screenshot.png)
15+
![Example](https://github.com/smallbasic/smallbasic.syntax-highlighting/raw/main/atom/Screenshot.png)
1616

1717
## Setup Syntax Highlighting and Coloring
1818

_build/pages/language_support_geany.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ separately by the user. Among the supported programming languages and markup lan
1111
C#, Java, JavaScript, PHP, HTML, LaTeX, CSS, Python, Perl, Ruby, Pascal, Haskell, Erlang, Vala and
1212
many others." ([wikipedia](https://en.wikipedia.org/wiki/Geany))_
1313

14-
![Example](https://github.com/Joe7M/smallbasic.geany.syntaxcoloring/raw/main/Screenshot.png)
14+
![Example](https://github.com/smallbasic/smallbasic.syntax-highlighting/raw/main/geany/screenshot.png)
1515

1616
## Setup Syntax Highlighting and Coloring
1717

18-
Download the file "filetypes.freebasic" from [Gitub](https://github.com/Joe7M/smallbasic.geany.syntaxcoloring) and copy it to:
18+
Download the file "filetypes.freebasic" from [Gitub](https://github.com/smallbasic/smallbasic.syntax-highlighting/tree/main/geany) and copy it to:
1919

2020
- Linux: ~/.config/geany/filedefs/
2121
- Windows: _"Installation directory of Geany"_\data\filedefs

_build/pages/language_support_jedit.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
55
_"jEdit is a free software text editor available under GPL-2.0-or-later. It is written in Java and runs on any operating system with Java support, including BSD, Linux, macOS and Windows. " ([wikipedia](https://en.wikipedia.org/wiki/JEdit))_
66

7-
![Example](https://raw.githubusercontent.com/Joe7M/smallbasic.jedit.syntaxcoloring/main/Screenshot.png)
7+
![Example](https://github.com/smallbasic/smallbasic.syntax-highlighting/raw/main/jedit/screenshot.png)
88

99
## Setup Syntax Highlighting and Coloring
1010

11-
- Download the file `smallbasic.xml` from [Github](https://github.com/Joe7M/smallbasic.jedit.syntaxcoloring)
11+
- Download the file `smallbasic.xml` from [Github](https://github.com/smallbasic/smallbasic.syntax-highlighting/tree/main/jedit)
1212
- Start jedit
1313
- Go to `Utilities -> Global Options -> Editing -> Edit Modes`
1414
- In the section `Add Mode` create a new mode:

_build/pages/language_support_kdekate.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ for software developers, it features syntax highlighting, code folding, customiz
66
support, and extensibility"
77
([wikipedia](https://en.wikipedia.org/wiki/Kate_(text_editor)))_
88

9-
![Example](https://raw.githubusercontent.com/Joe7M/smallbasic.kate.syntaxcoloring/main/screenshot.png)
9+
![Example](https://github.com/smallbasic/smallbasic.syntax-highlighting/raw/main/kate/screenshot.png)
1010

1111
## Setup Syntax Highlighting and Coloring
1212

13-
The file for syntax highlighting can be downloaded from [Github](https://github.com/Joe7M/smallbasic.kate.syntaxcoloring/)
13+
The file for syntax highlighting can be downloaded from [Github](https://github.com/smallbasic/smallbasic.syntax-highlighting/tree/main/kate)
1414

1515
Copy the file "smallbasic.xml" into the folder "~/.local/share/org.kde.syntax-highlighting/syntax/".
1616
Most probably this folder does not exist. Please create it. Restart Kate and chose "SmallBASIC" for highlighting.

_build/pages/language_support_micro.markdown

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
55
_"Micro is a modern and intuitive terminal-based text editor " ([micro](https://micro-editor.github.io/))_
66

7-
![Example](https://raw.githubusercontent.com/Joe7M/smallbasic.micro.syntaxcoloring/main/Screenshot.png)
8-
7+
![Example](https://github.com/smallbasic/smallbasic.syntax-highlighting/raw/main/micro/screenshot.png)
98
## Setup Syntax Highlighting and Coloring
109

11-
Download the file `smallbasic.yaml` from [github](https://github.com/Joe7M/smallbasic.micro.syntaxcoloring) and copy it to `~/.config/micro/syntax/`.
10+
Download the file `smallbasic.yaml` from [github](https://github.com/smallbasic/smallbasic.syntax-highlighting/tree/main/micro) and copy it to `~/.config/micro/syntax/`.

_build/pages/language_support_nano.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
_"GNU nano is a text editor for Unix-like computing systems or operating environments using a command line interface. " ([Wikipedia](https://en.wikipedia.org/wiki/GNU_nano))_
66

77

8-
![Example](https://raw.githubusercontent.com/Joe7M/smallbasic.nano.syntaxcoloring/main/screenshot.png)
8+
![Example](https://github.com/smallbasic/smallbasic.syntax-highlighting/raw/main/nano/screenshot.png)
99

1010
## Installation
1111

12-
- Download the file `smallbasic.nanorc` from [github](https://github.com/Joe7M/smallbasic.nano.syntaxcoloring)
12+
- Download the file `smallbasic.nanorc` from [Github](https://github.com/smallbasic/smallbasic.syntax-highlighting/tree/main/nano)
1313
- Create the folder `~/.config/nano/syntax`
1414
- Copy the file "smallbasic.nanorc" into that folder
1515
- Edit the nano configuration file -> `nano ~/.config/nano/nanorc`

_build/pages/language_support_sublimetext.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ regular-expressions, terminal output window, and more. It is proprietary softwar
99
evaluation version is available."
1010
([wikipedia](https://en.wikipedia.org/wiki/Sublime_Text))_
1111

12-
![Example](https://raw.githubusercontent.com/Joe7M/smallbasic.sublimetext.syntaxcoloring/main/screenshot.png)
12+
![Example](https://github.com/smallbasic/smallbasic.syntax-highlighting/raw/main/sublimetext/screenshot.png)
1313

1414
## Installation
1515

16-
The files for syntax highlighting can be downloaded from [Github](https://github.com/Joe7M/smallbasic.sublimetext.syntaxcoloring/).
16+
The files for syntax highlighting can be downloaded from [Github](https://github.com/smallbasic/smallbasic.syntax-highlighting/tree/main/sublimetext).
1717

1818
Copy the files in the folder "package" to the User directory in the Sublime Text package folder.
1919
The Sublime Text package folder can be open within Sublime Text under Preferences -> Browse Packages.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# SmallBASIC in vim
2+
3+
> Using vim
4+
5+
_"Vim (short for vi improved) is a free and open-source text editor. Vim provides both a terminal screen user interface as well as a graphical user interface" ([Wikipedia](https://en.wikipedia.org/wiki/Vim_(text_editor)))_
6+
7+
8+
![Example](https://github.com/smallbasic/smallbasic.syntax-highlighting/raw/main/vim/screenshot.png)
9+
10+
## Installation
11+
12+
- Download the file `smallbasic.vim` from [Github](https://github.com/smallbasic/smallbasic.syntax-highlighting/tree/main/vim)
13+
- Create the folder `~/.vim/syntax`
14+
- Copy the file `smallbasic.vim` into that folder
15+
- Edit or create the file `~/.vim/filetype.vim`
16+
- Add `au BufNewFile,BufRead *.bas set filetype=smallbasic`

0 commit comments

Comments
 (0)