Hi Mohamad,
I have inlcuded the test files from the original repository in the
`./samples` folder.
Open up 1tid.tid` and then make sure that it says "TiddlyWiki5" in the
language-bubble (bottom right corner of VSCode UI). If it says "plain text"
or anything else, click there and then type "tiddlywiki" to bring it up in
the language-list.
Once the language for the file is set correctly, the Illegal Fields Names
in the header will be red ("Invalid.illegal" scope). Other colors depend on
the Theme you are using and what "scope" each bit of text is set to. I have
not read the full Grammar I have borrowed, but the test file will reveal
most of the current colors.
Also, while VSCode has "folding groups by indent level" automatically, I
have also setup Regex to recognize `<!-- #region Name -->` and `<!--
#endregion -->` as folding markers (which should make navigating large text
tiddlers a bit easier). At some point, a full File Outline may be possible
(a ways out).
I am also experimenting with "Snippets" (which I also borrowed). Some have
just been setup in the repo (re-download or pull). These allow "shortcuts"
to full lines of code. For example, type "table" and the IntelleSense will
how a bunch of option in a pop-up. Select the first "Table (Tiddlywiki..."
item with the arrow keys and press Tab. Your shortcut has been repalced
with:
|Data One |Data Two |
|Data Three |Data Four |
There are many more to go through, and these will also likely be changing
as I get used to working with them.
Best,
Joshua F
On Saturday, March 28, 2020 at 1:35:36 PM UTC-7, Mohammad wrote:
>
> Hi Joshua,
> Thank you for sharing this! Is it possible to send some screenshots of
> .tid file in VSCode?
>
> I downloaded the extension and install it! I realized the folder name
> should be in lowercase!
> I cannot see much of text highlighted!
> For example strings, code (``) and codeblocks!
> \pragma? (I see \define simple-list(p) only the word define is blue)
>
> --Mohammad
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/5efe8269-2e54-4db3-9fc0-a4107f1223cd%40googlegroups.com.