6 | // The License.txt file describes the conditions under which this software may be distributed.
7 |
8 | #ifndef POSITION_H
9 | #define POSITION_H
10 |
11 | /**
12 | * A Position is a position within a document between two characters or at the beginning or end.
13 | * Sometimes used as a character index where it identifies the character after the position.
14 | * A Line is a document or screen line.
15 | */
16 |
17 | namespace Sci {
18 |
19 | typedef ptrdiff_t Position;
20 | typedef ptrdiff_t Line;
21 |
22 | inline constexpr Position invalidPosition = -1;
23 |
24 | }
25 |
26 | #endif
27 |
--------------------------------------------------------------------------------
/Other/DocFX/_doc/template1/mod.txt:
--------------------------------------------------------------------------------
1 | Using 3 templates:
2 | template1 - modified "mathew" template. It is included in the DocFX "Templates" webpage. Downloaded from github. Mostly changes style.
3 | template2 - styles to change in member pages. Copied from mathew and modified.
4 |
5 | Currently not using the affix. It is the dynamic links at the right.
6 |
7 | Note: after copy/paste in VS, undo autoformatting done by VS. It damages .
8 |
9 | Unsuccessfully tried to create a plugin.
10 | Followed the tutorial, created the plugin, copied the output files to the plugins folder of template1.
11 | Error when DocFX runs: Error:[ImportPlugins]Error when get composition container: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information., loader exceptions: Could not load file
12 |
13 |
--------------------------------------------------------------------------------
/Cookbook/files/Script/Run script at startup, output link.cs:
--------------------------------------------------------------------------------
1 | /// To run a script when the editor program starts (actually whenever this workspace loaded), add it in Options > Workspace > Startup scripts<>. Use path like `\Folder\Script.cs` or name like `Script123.cs`. Can be several scripts in separate lines. To temporarily disable a script, prepend `//`, like `//\Folder\Script.cs`.
2 |
3 | /// To run a script when Windows starts and don't start the editor too, need to create exe program<> from the script. Then launch it like any other program, for example create shortcut in the Startup folder or use Windows Task Scheduler.
4 |
5 | /// Yet another way to run a script - a link<> in the output panel. In another script use code like this:
6 |
7 | print.it("<>Run script