Main Menu

Recent posts

#71
Tiko Programming Language / Re: Some Personal Notes on Cod...
Last post by José Roca - August 02, 2026, 09:27:50 AM
Your formatting notes are interesting and certainly useful for your own workflow.

However, it's important to remember that code formatting preferences vary widely between developers. What feels "correct" or "natural" to one person may feel distracting or even counter‑productive to someone else.

Because of this, any automatic formatting feature in Tiko should be optional and user‑configurable. A single fixed set of rules cannot satisfy everyone, especially when different BASIC dialects, coding styles, and personal habits are involved.

Your suggestions can definitely serve as a good starting point, but they should be treated as one possible style, not a universal standard. Ideally, Tiko will allow each user to choose the formatting rules that best match their own preferences.

I, personally, use "original case", that is: don't mess with I'm writing.
#72
Tiko Programming Language / Re: I sincerely hope the new v...
Last post by José Roca - August 02, 2026, 08:50:01 AM
Please note that the issue that I'm reporting is about ANSI files that contain double‑byte characters (Chinese, Japanese, Korean, Big5, Shift‑JIS, etc.). These encodings do not use Unicode at all. They rely on DBCS (Double‑Byte Character Sets), where each character occupies two bytes.

In ANSI DBCS files, Scintilla must be explicitly switched into DBCS mode. If not, Scintilla treats each byte as a separate character, which causes the Backspace key to delete only half of a character. This is unrelated to UTF‑8/UTF‑16 and remains an issue even if Unicode printing works perfectly.
#73
Tiko Programming Language / Re: I sincerely hope the new v...
Last post by José Roca - August 02, 2026, 08:39:32 AM
Hi Paul,

The easiest way to fix the ANSI double‑byte character issue in Tiko is to automatically enable Scintilla's DBCS mode whenever an ANSI file contains bytes in the DBCS range.

This requires no UI changes and works for Chinese, Japanese, Korean, Big5, Shift‑JIS, and other double‑byte encodings.

1. Detect whether the ANSI file contains double‑byte characters

When loading an ANSI file, scan the raw bytes.
If any byte is in this range:

0x81–0xFE

then the file is almost certainly encoded in a DBCS code page (GBK, Big5, Shift‑JIS, EUC‑KR, etc.). Western ANSI encodings never use bytes above 0x7F, so this detection is reliable.

2. If DBCS bytes are found, enable Scintilla's DBCS mode

Set a DBCS‑compatible code page (CP936 is the safest default)


SCI_SETCODEPAGE, 936  // GBK / CP936

CP936 is a good default because:

it supports a wide range of double‑byte characters,

it does not break Japanese or Korean text,

and it immediately fixes the backspace problem.

(You can refine this later if you want, but CP936 is enough to solve the current issue.)


Set an appropriate character set for rendering

SCI_STYLESETCHARACTERSET, STYLE_DEFAULT, SC_CHARSET_GB2312

This ensures correct width and font selection for double‑byte characters.


#74
Tiko Programming Language / Re: I sincerely hope the new v...
Last post by Paul Squires - August 02, 2026, 08:33:13 AM
Hi, this has all been fixed a couple of weeks ago.

The encoding was fixed on July 26 https://www.planetsquires.com/protect/forum/index.php?topic=4864.msg36748#msg36748

I just ran two tests on files using UTF-8 BOM and UTF-16 BOM. Both print to the console perfectly. I have attached screenshots.

These changes will be in the next Tiko update.
#75
Tiko Programming Language / I sincerely hope the new versi...
Last post by fbfans - August 02, 2026, 03:35:23 AM
The upcoming release is already remarkably robust—it's a powerful IDE that fully embodies all the modern features you'd expect. With its elegant UI, full Unicode support, and seamless integration with the latest afx framework for Windows programming, Tiko has clearly positioned itself as a forward-looking tool in the FreeBASIC ecosystem.
The reason I urgently need this fix is that, under FreeBASIC, the console does not handle Chinese characters perfectly when using UTF-8 BOM or UTF-16 BOM encoding—characters often overlap or get cut off. I posted about this on the official forum but received no response. Currently, the only encoding that allows the console to display Chinese correctly is ANSI. As a result, most of my programming work is done in ANSI format.
That's precisely why the current behavior—where a single backspace deletes only half of a double-byte character under ANSI—affects me so significantly. This is the kind of problem that belonged to IDEs from 20 or 30 years ago, not to a modern editor like Tiko.
For comparison, I've tested other FreeBASIC IDEs such as FBIDE, VFBE, and VFB, and they all handle double-byte characters correctly across encoding formats. As one of the few FreeBASIC IDEs that combines high-DPI support with a clean, user-friendly experience, Tiko really should offer flawless double-byte character handling in every encoding mode.
I sincerely hope Paul will address this in a future update. I'm really looking forward to it!
#76
Tiko Programming Language / Re: Some Personal Notes on Cod...
Last post by fbfans - August 02, 2026, 03:18:45 AM
Additional points:
1.If considering compatibility with QB64PE or earlier BASIC dialects, metacommands such as $Dynamic, $Include, $Lang, $Static — when prefixed with Rem or ' — should be highlighted properly. Also, variable type suffix characters like %, &, #, ! (e.g., x%, y&, z#, a!) should not have a space inserted before them. These metacommands are typically used with the -lang qb or -lang fblite dialect. Please refer to the FreeBASIC Wiki sections: "Standard Data Type Limits" and "Metacommands".
2.a eqv= b is a binary operator, and there should be no space between eqv and =. Similarly: and=, or=, imp=, xor=, mod=, shl=, shr=. (For example, a and= b → a and = b.)
#77
Tiko Programming Language / Tiko - new Unused Symbol repor...
Last post by Paul Squires - August 01, 2026, 08:27:47 AM
The "Unused Symbols" report shows an interactive listing of all subs/functions, variables, types, fields, and constants that appear to not be used after being declared or dimensioned. No other FB editor has this functionality because it entailed a few more hooks into the actual FBC parser. It needs more testing to verify its accuracy and you still need to use judgement because even though a symbol is not used doesn't mean that it is not important and probably should remain (eg. function declares in a .bi include file).

Clicking on a line in the report takes you to the source code. The report automatically refreshes with up to date line numbering once the background parsing thread completes (usually within a second).
#78
Tiko Programming Language / Re: Tiko - new Find in Project
Last post by fbfans - July 31, 2026, 07:49:21 AM
Hi Paul,

This is a very useful feature — great job!

I have a question: does this feature only search within the current project file?

I think in the future, this module could be extracted and turned into a standalone user tool. That way, we could search for specific text within a local folder, and maybe even support regular expressions, similar to dnGrep.

Also, the new UI and new features are all excellent — really looking forward to the release!
#79
Tiko Programming Language / Tiko - new Find in Project
Last post by Paul Squires - July 30, 2026, 06:39:20 PM
This is the last of the very big new feature implementations for the next Tiko version.

It is also the feature that I was so badly for Tiko. It is a mirror of the find in project functionality found in the Zed Editor. It allows you to do a search and then do live editing of the results in smaller 5 line windows of each result.

The screenshot shows a search for an AfxNova function "AfxStrReplace".

The screenshot may look at little cluttered because I need to do a sweep on the overall theme colors. The point here is the new functionality, not the visuals.
#80
Tiko Programming Language / Tiko - new Debugger
Last post by Paul Squires - July 30, 2026, 02:28:24 PM
This is an incredible new addition! Very exciting.

I have replaced the GDB debugger with a new integrated debugger based on SARG's gas64 debug stabs.

The debugger can work on regular 32-bit gas exe's, or 64-bit gas64 exe's.

I have attached a couple of screenshots to show the debugger in action. It is still VERY early but the debugger already has a lot of functionality. Take note of the screenshot showing the tooltip that pops up when you hover over a variable in the code editor during debugging. It shows current information about the variable.