- Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlanguage_support_sublimetext.html
98 lines (98 loc) · 4.5 KB
/
language_support_sublimetext.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<htmllang="en">
<head>
<metacharset="utf-8">
<metahttp-equiv="X-UA-Compatible" content="IE=edge">
<metaname="viewport" content="width=device-width, initial-scale=1">
<title>SmallBASIC | language_support_sublimetext</title>
<metaname="description" content="SmallBASIC | One more basic">
<linkrel="canonical" href="/language_support_sublimetext.html">
<linkrel="keywords" href="language_support_sublimetext">
<linkrel="stylesheet" href="/css/style.css">
<linkrel="icon" type="image/png" href="/images/sb-desktop-32x32.png">
<scriptsrc="/clipboard.js"></script>
</head>
<body>
<buttononclick="topFunction()" id="BackToTopBtn" title="Go to top">⯅</button>
<scriptsrc="/backtotop.js"></script>
<divclass="wrapAll clearfix">
<navclass="navigation">
<divclass="logo">
<ahref="/"><imgsrc='/images/sb-logo.png?v=2' alt="logo"></a>
</div>
<divclass="navlinks">
<ahref="/pages/download.html">Download</a>
<ahref="/pages/news.html">News</a>
<ahref="/pages/community.html">Community</a>
<aclass='active' href="/pages/articles.html">Resources</a>
<ahref="/pages/reference.html">Language Reference</a>
<ahref="/pages/guide.html">SmallBASIC Manual</a>
</div>
</nav>
<divclass="mainsection">
<divclass="tabs clearfix">
<divclass="tabsRight">
<atarget="_github" href="https://github.com/smallbasic/smallbasic.github.io/blob/master/_build/pages/language_support_sublimetext.markdown">Edit</a>
<atarget="_github" href="https://github.com/smallbasic/smallbasic.github.io/commits/master/_build/pages/language_support_sublimetext.markdown">History</a>
</div>
</div>
<divclass="article">
<h1id="smallbasic-in-sublime-text">SmallBASIC in Sublime Text</h1>
<p><em>“Sublime Text is a shareware text and source code editor
available for Windows, macOS, and Linux. It natively supports many
programming languages and markup languages. Users can customize it with
themes and expand its functionality with plugins, typically
community-built and maintained under free-software licenses. […] The
editor utilizes minimal interface and contains features for programmers
including configurable syntax highlighting, code folding,
search-and-replace supporting regular-expressions, terminal output
window, and more. It is proprietary software, but a free evaluation
version is available.” (<a
href="https://en.wikipedia.org/wiki/Sublime_Text">wikipedia</a>)</em></p>
<figure>
<img
src="https://raw.githubusercontent.com/Joe7M/smallbasic.sublimetext.syntaxcoloring/main/screenshot.png"
alt="Example" />
<figcaptionaria-hidden="true">Example</figcaption>
</figure>
<h2id="installation">Installation</h2>
<p>The files for syntax highlighting can be downloaded from <a
href="https://github.com/Joe7M/smallbasic.sublimetext.syntaxcoloring/">Github</a>.</p>
<p>Copy the files in the folder “package” to the User directory in the
Sublime Text package folder. The Sublime Text package folder can be open
within Sublime Text under Preferences -> Browse Packages.</p>
<h2id="script-execution">Script execution</h2>
<p>Please edit the file <code>SmallBASIC.sublime-build</code> to
configure script execution.</p>
<h3id="linux">Linux</h3>
<p>The default file launches sbasicg (SDL-version) in Linux. sbasicg
must be in the search path.</p>
<pre><code>{
"cmd": ["cmd", "/c", "sbasicg", "-r", "$file"],
"selector": "source.SmallBASIC"
}</code></pre>
<p>Replace sbasicg by sbasic if you want to launch the console version.
You can also include the full path.</p>
<pre><code>{
"cmd": ["cmd", "/c", "sbasic", "$file"],
"selector": "source.SmallBASIC"
}</code></pre>
<h3id="windows">Windows</h3>
<p>Replace sbasicg by sbasicg.exe. You can include the full path if
sbasicg.exe is not in the search path.</p>
<pre><code>{
"cmd": ["cmd", "/c", "sbasicg.exe", "-r" "$file"],
"selector": "source.SmallBASIC"
}</code></pre>
</div>
<divclass="pagefooter">
This page was last edited on Thu, 24 Aug 2023 08:14:54 +0930
|
<ahref="https://en.wikipedia.org/wiki/Markdown" target="_blank" rel="nofollow">Markdown</a>
processed with
<ahref="https://pandoc.org/MANUAL.html#pandocs-markdown" target="_blank" rel="nofollow">pandoc 3.1.12.1</a>
</div>
</div>
</div>
</body>
</html>