Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WIP.IDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion builder/page-baseline.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"src": "docs",
"pages": 1550,
"pages": 1551,
"staticFiles": 1471
}
2 changes: 1 addition & 1 deletion docs/IDE/AddIns/Community/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
44 changes: 44 additions & 0 deletions docs/IDE/AddIns/CommunityTools.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion docs/IDE/AddIns/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
1 change: 1 addition & 0 deletions docs/_book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading