PureBasic
PureBasic support for Sublime Text.
Details
Installs
- Total 352
- Win 225
- Mac 57
- Linux 70
Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
PureBasic Language Support for Sublime Text
This is a spare time experiment to extend Sublime Text with convenient support for PureBasic.
For now the most recent and stable PureBasic release represents the specification to conform to. Deprecated or removed symbols from past releases can also be supported, if no conflicts result from that.
If you notice anything like a PureBasic keyword or standard library procedure missing, please report an issue.
Syntax Definition
This package ships with a syntax definition which may not cover everything (yet) but most of what matters for a pleasant editing and reading experience. In example: you can quickly navigate to procedure implementations because Sublime Text recognizes them because of the syntax definition.
If you stumble across unrecognized keywords or other expressions, then please file an issue in the issue tracker. As far as the official documentation goes I think I did not miss anything. As #22 shows sometimes the syntax definition needs only a little bit of tweaking to improve support for already known expressions.
Symbol List
Important entities like procedures or structures are listed Sublime Text's symbol list for quick navigation.
Completions
The package ships snippets for regularly used constructs like conditional clauses or procedure implementations. Also it provides completions for keywords and the library procedures (including parameters) shipped with PureBasic.
Build System
This package features a simple Sublime Text build system for PureBasic. It enables you to build and run the current PureBasic source code file.
The build system assumes the PureBasic compiler to be available in the PATH
.
Please refer to the PureBasic documentation for setting up commandline usage. Not the documentation you likely think of as I would do, too, but the Install.txt shipped with PureBasic. In example for macOS it is located inside the PureBasic.app bundle in Contents/Resources/
.
Installation
Package Control
This is available on Package Control.
Manual
Otherwise it can be installed manually by cloning the repository in your package directory of Sublime Text.
History
Years ago, when there was still Sublime Text 2 and no Atom around, I tried to add support for PureBasic to Sublime Text. My main motivation was the cumbersome user experience of the PureBasic IDE, especially on Linux and macOS. Back then I was not close to where I am now in terms of software engineering skills. So I never got far.
When Atom was released it took not much time for me to switch to it as a sidekick instead of Sublime Text. It was much more approachable for me due to the web technologies used and completely free. When I was thinking about a more convenient way of editing PureBasic source code, I created a language support package. It turned out pretty fine (in my opinion). Though PureBasic already was nostalgy instead of a serious interest. Career already took me elsewhere.
So every now and then I have a nostalgic urge to pick up PureBasic again. Though meanwhile I came back to Sublime Text as a sidekick. Atom, rooted in its Electron.js foundation, is a horribly slow and resource hungry editor and at some point I was tired of it. I ported much stuff from my Atom language support package in form of this Sublime Text package. Sublime Text is much faster and efficient, especially with large files. This time I took it further.
Contributing
See CONTRIBUTING.md for further information.
License
This is free and unencumbered software released into the public domain. See LICENSE for further information.