Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grammar scope: Need support for bc.. tag #12

Open
wion opened this issue Feb 18, 2021 · 2 comments
Open

grammar scope: Need support for bc.. tag #12

wion opened this issue Feb 18, 2021 · 2 comments
Labels
enhancement New feature or request Expert help wanted Need developer help or inspection on this. mostly works This mostly works as expected, but something could be amiss.

Comments

@wion
Copy link
Owner

wion commented Feb 18, 2021

While the bc. tag now works, support for the bc.. (multi-blocks) tag needs added. This requires figuring out how to continue the presentation on block code across line breaks until escaped, typically with a different Textile tag (e.g. p., hn., etc).

@wion wion added the to do On the to do list label Feb 18, 2021
@wion wion changed the title grammar scope: Need support for multi-para bc.. tag grammar scope: Need support for bc.. tag Feb 18, 2021
@wion
Copy link
Owner Author

wion commented Feb 18, 2021

This now works. Only thing needed was to account for the extra dot in the block code scope. The continuing code block behaviour already worked, I just happened to discover it by accident. ;)

tWriter quotes and code

To do the multi-block dance:

  1. Type the @bc..@ tag (two dots) and the first block of code, as normal.
  2. Hit in series:
    1. Return ⮐
    2. Tab ⇥
    3. Return ⮐
  3. Type second block (or paste what you have), and so on until end of the last block.
  4. Hit in series to exit the tab and end the multi-block capture:
    1. Return
    2. Backspace ←

There is no distinction between the bc. and the bc.. blocks, in fact. You just have to be careful that you use the right number of tag dots when transferring to Textpattern.

Also, in Textpattern, to truly escape the multi-blocks, a new block element starting with a dot tag (p., hn., etc) must be used, so might as well get in habit of adding it in the .textile draft article.

@wion wion closed this as completed Feb 18, 2021
@wion wion removed the to do On the to do list label Feb 18, 2021
@wion
Copy link
Owner Author

wion commented Feb 19, 2021

Reopening, because it would be nice if step 2.ii in previous post (making the tabbed and active position) happened automatically when conducting the initial carriage return (2.i) for bc.. context.

But I don't know how to do it.

Anyone?

Same for #13, and similar situation for #9

@wion wion reopened this Feb 19, 2021
@wion wion added enhancement New feature or request Expert help wanted Need developer help or inspection on this. mostly works This mostly works as expected, but something could be amiss. labels Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Expert help wanted Need developer help or inspection on this. mostly works This mostly works as expected, but something could be amiss.
Projects
None yet
Development

No branches or pull requests

1 participant