From bd646e4b8b9ff4437aaeb3de2ef0a2828a95dc50 Mon Sep 17 00:00:00 2001 From: Kuba Sunderland-Ober Date: Wed, 18 Nov 2026 18:59:53 +0100 Subject: [PATCH 1/2] Community tools: a page of the programs twinBASIC users share that are not add-ins --- builder/page-baseline.json | 2 +- docs/IDE/AddIns/Community/index.md | 2 +- docs/IDE/AddIns/CommunityTools.md | 44 ++++++++++++++++++++++++++++++ docs/IDE/AddIns/index.md | 2 +- docs/_book.yml | 1 + 5 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 docs/IDE/AddIns/CommunityTools.md diff --git a/builder/page-baseline.json b/builder/page-baseline.json index c317a8e2..162c7356 100644 --- a/builder/page-baseline.json +++ b/builder/page-baseline.json @@ -1,5 +1,5 @@ { "src": "docs", - "pages": 1550, + "pages": 1551, "staticFiles": 1471 } diff --git a/docs/IDE/AddIns/Community/index.md b/docs/IDE/AddIns/Community/index.md index b22fc5a3..29e7ff5b 100644 --- a/docs/IDE/AddIns/Community/index.md +++ b/docs/IDE/AddIns/Community/index.md @@ -7,7 +7,7 @@ permalink: /tB/IDE/AddIns/Community # Community add-ins -Community add-ins are the ones that twinBASIC users write and share, as distinct from [Global Search](GlobalSearch), which ships with the IDE, and the [Help add-in](Help). +Community add-ins are the ones that twinBASIC users write and share, as distinct from [Global Search](GlobalSearch), which ships with the IDE, and the [Help add-in](Help). Programs that are not add-ins, such as one that installs a new version of twinBASIC, are on the [Community tools](Community-Tools) page. > [!WARNING] > An add-in is a compiled DLL that runs inside the IDE, with your rights. Treat it as you would any program that you have not written yourself. diff --git a/docs/IDE/AddIns/CommunityTools.md b/docs/IDE/AddIns/CommunityTools.md new file mode 100644 index 00000000..ee7e093b --- /dev/null +++ b/docs/IDE/AddIns/CommunityTools.md @@ -0,0 +1,44 @@ +--- +title: Community Tools +parent: Add Ins +nav_order: 4 +permalink: /tB/IDE/AddIns/Community-Tools +index: + - community utilities +--- + +# Community tools + +Community tools are programs that twinBASIC users write and share, and that help with twinBASIC itself: installing a new version, moving code from VB6, editing twinBASIC code outside the IDE. A tool is a program of its own. It is not an add-in, which the IDE loads: those are on the [Community add-ins](Community) page. + +> [!WARNING] +> Each tool is a program that its author publishes. Treat it as you would any program that you have not written yourself. + +The tools below are listed as their authors describe them. A tool whose link goes to Discord is published only as an attachment to a thread in the **show-and-tell** channel of the [twinBASIC Discord server](https://discord.gg/UaW9GgKKuE). Such a link needs a Discord account that has joined the server. + +## Keeping twinBASIC up to date + +A new version of twinBASIC is a zip file to download and unpack. These tools do that work. + +| Tool | Author | What it does | Published as | +|---|---|---|---| +| [tbHelper](https://github.com/jdelano0310/tbHelper) | jdelano0310 | Updates twinBASIC to a newer version, or goes back to an earlier one. It shows the change log of the versions, which you can filter by the kind of change. | A twinBASIC project, with a built EXE in the repository's `Build` folder | +| [tbLoader](https://discord.com/channels/927638153546829845/1567925865059192944) | DTZ | Starts the newest twinBASIC on the machine. When a newer version exists, it offers to download and unpack that one first. It stays out of the way when there is nothing to update. Close every twinBASIC IDE before you update with it. | An EXE and its twinBASIC project, attached to the thread; the newest is at the thread's end | + +## Moving code from VB6 + +| Tool | Author | What it does | Published as | +|---|---|---|---| +| [ClsToTwin](https://github.com/fafalone/ClsToTwin) | fafalone | Converts a folder of VB6 `.cls` files to `.twin` files, which **Add → Import** then brings into a project. It wraps each class in `Class` and `End Class`, and can add new class and interface identifiers. It keeps the folder structure or puts every file in one folder. | A twinBASIC project and an EXE on the **Releases** page | +| [LinebreakRepair](https://github.com/fafalone/LinebreakRepair) | fafalone | Repairs the VB6 files of a folder whose line ends have become LF alone, which happens to projects uploaded to GitHub with some settings. VB6 cannot read such a file. | A twinBASIC project, and 32-bit and 64-bit EXEs on the **Releases** page | +| [ReadTypelib](https://discord.com/channels/927638153546829845/1560715630460805261) | fafalone | Reads an ActiveX DLL or control and writes, for each class in it, the attributes that make a twinBASIC class binary compatible with it. It also prints the library's identifier, for the project's settings. | A twinBASIC project attached to the thread; it needs the WinDevLib package | + +## Editing twinBASIC code in another editor + +| Tool | Author | What it does | Published as | +|---|---|---|---| +| [twinBASIC for Notepad++](https://github.com/notepad-plus-plus/userDefinedLanguages/tree/master/UDLs) | sokinkeso | Syntax highlighting of twinBASIC code in Notepad++, with the keywords and operators that twinBASIC adds to VB6, for a light and for a dark theme. | `twinBASIC_by_sokinkeso.xml` and `twinBASIC_dark_by_sokinkeso.xml` in the Notepad++ collection of user defined languages | + +To add the highlighting, download one of the two files. In Notepad++, choose **Language → User Defined Language → Define your language...**, then **Import**, and select the file. **twinBASIC** is then in the **Language** menu. + +To share a tool, add it to this page: [Authoring](../../../Documentation/Development/Authoring) describes how to change a page of this documentation. diff --git a/docs/IDE/AddIns/index.md b/docs/IDE/AddIns/index.md index 493e2514..a80ade82 100644 --- a/docs/IDE/AddIns/index.md +++ b/docs/IDE/AddIns/index.md @@ -13,7 +13,7 @@ index: An addin is a Standard DLL that exports `tbCreateCompilerAddin` and returns an object implementing the [**AddIn**](../../Packages/tbIDE/AddIn) interface. Through the [**Host**](../../Packages/tbIDE/Host) object the IDE passes at startup, an addin can reach the toolbar, tool windows, debug console, current project, keyboard shortcuts, and themes. The [**tbIDE package**](../../Packages/tbIDE/) documents the full API. -The New Project dialog's **Samples** section holds seven addin samples, numbers 10 to 16, the cards named *twinBASIC IDE Addin*, alone or with a variant in brackets (see [Samples](../Starting/Samples)), covering patterns from simple toolbar buttons to HTML DOM-backed tool windows. Each is a complete addin project, with the tbIDE package referenced and the build path set, and Sample 10, *twinBASIC IDE Addin*, is the plainest one to start from. A project started from the **Standard DLL** template has neither setting: [Building and loading an addin](../../Packages/tbIDE/#building-and-loading-an-addin) says what to add. Community addins are listed on the [**Community**](Community) page. +The New Project dialog's **Samples** section holds seven addin samples, numbers 10 to 16, the cards named *twinBASIC IDE Addin*, alone or with a variant in brackets (see [Samples](../Starting/Samples)), covering patterns from simple toolbar buttons to HTML DOM-backed tool windows. Each is a complete addin project, with the tbIDE package referenced and the build path set, and Sample 10, *twinBASIC IDE Addin*, is the plainest one to start from. A project started from the **Standard DLL** template has neither setting: [Building and loading an addin](../../Packages/tbIDE/#building-and-loading-an-addin) says what to add. Community addins are listed on the [**Community**](Community) page, and other programs that twinBASIC users share on the [**Community tools**](Community-Tools) page. twinBASIC supports two addin install locations. The IDE install directory is available to all user accounts on the machine but may require reinstallation after an IDE update. A per-user application data folder persists across IDE upgrades and requires no administrator rights. diff --git a/docs/_book.yml b/docs/_book.yml index ef3915a2..0b161aac 100644 --- a/docs/_book.yml +++ b/docs/_book.yml @@ -313,6 +313,7 @@ parts: - /tB/IDE/AddIns/ - /tB/IDE/AddIns/GlobalSearch - /tB/IDE/AddIns/Community + - /tB/IDE/AddIns/Community-Tools no_descent: true no_outline_entry: true no_heading_shift: true From 905705f00547da0637c707a7a7adaa83a030932e Mon Sep 17 00:00:00 2001 From: Kuba Sunderland-Ober Date: Wed, 18 Nov 2026 18:59:54 +0100 Subject: [PATCH 2/2] WIP.IDE.md: what the Community tools page lists --- WIP.IDE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WIP.IDE.md b/WIP.IDE.md index 0641c7ab..8a2754d9 100644 --- a/WIP.IDE.md +++ b/WIP.IDE.md @@ -38,7 +38,7 @@ children. Second person ("you") is allowed here, as in tutorials. | 6 | Running and debugging | `/tB/IDE/Debugging` + children | Menu/Debug's run-time error walkthrough and Debugger Options, Menu/Run, Debug Console, Variables, Watches, Call Stack, Memory, `Features/Compiler-IDE/Debugging` | | 7 | Building | `/tB/IDE/Building` | Toolbar's Build configuration, Menu/File's Build and Clean, Package Publishing, links to LLVM and Project-Types | | 8 | Customising the IDE | `/tB/IDE/Customising/` + children | IDE Options (all of them), themes and custom `.theme` files, panel layouts, keyboard shortcuts, language (from Menu/Window and Menu/Tools) | -| 9 | Add-ins | `/tB/IDE/AddIns/` | AddIns/* (the community add-ins are listed from their authors' READMEs and release pages, and the Discord-only ones from their show-and-tell threads in the Wisdom harvest, each linked by its thread: they are published as DLLs, and none is downloaded or run here. sokinkeso plans to replace his with a commercial suite, KESO-DevToolz: update the table when it is out. Left out: fafalone's CodeStatAddin, unfinished by his word, and EJ's tb-claude, whose repository is gone) | +| 9 | Add-ins | `/tB/IDE/AddIns/` | AddIns/* (the community add-ins are listed from their authors' READMEs and release pages, and the Discord-only ones from their show-and-tell threads in the Wisdom harvest, each linked by its thread: they are published as DLLs, and none is downloaded or run here. sokinkeso plans to replace his with a commercial suite, KESO-DevToolz: update the table when it is out. Left out: fafalone's CodeStatAddin, unfinished by his word, and EJ's tb-claude, whose repository is gone. `Community-Tools` lists the programs that are not add-ins, from the same sources and by the same rules; a tool is listed if it helps with twinBASIC itself, so the demos and applications of show-and-tell are not. Owner: a top-level page for all community contributions, packages included, is the long-term place for both lists) | | 10 | When something goes wrong | `/tB/IDE/Troubleshooting/` + children | Status Bar's service states, Restart the compiler, TRACE mode, error reporting | **Part B, Reference.** Written impersonally. One page per menu, plus the Toolbar, the Status Bar