Unable To Format Windows Bat Script Contain %%

4

Hi Admin,


I am trying to format windows bat script that containt %% in the script.



and the result is very messy



How to fix bat script format?


Thanks and regards

Show Files (2 files)

Comments

  1. Re: Unable To Format Windows Bat Script Contain %%

    If the content itself contains a double percent which gets falsly interpreted as Wiki syntax, you can circumvent this by using the alternate grave accents `` syntax as mentioned in the 6.1 change log.


    %% double percent sign %%		
    • WikiAdmin
    • 11/18/2026 09:20 edited
  2. Length-Based Nesting

    With version 6.3.2 WackoWiki supports length-based nesting. WikiEdit determines the correct length by checking the selected block for existing delimiters.




    To nest code fences in WackoWiki without breaking rendering, the outer fence must be strictly longer than the longest fence sequence inside it, or use a different fence character (percent signs vs. backticks).


    Wacko Markup Rule: A fenced code block ends at the first line with at least as many of the same fence character as the opening fence. Using the same length for nested blocks causes the parser to close the outer block prematurely, leaking the rest of the content as live Markdown.


    Solutions:

    • k+1 Rule: If the inner content contains a fence of length k (e.g., 2 percent signs), use a fence of length k+1 (e.g., 3 percent signs) for the outer block.
    • Character Switch: Use backticks (``) for the outer fence if the inner fence uses percent signs (%%), as they cannot close each other.

    Variable-Length Fences (new)
    Syntax Display
    %%%
    %%
    code block
    %%
    %%%		
    %%
    code block
    %%		

    Character Switch
    Syntax Display
    ``
    %%
    code block
    %%
    ``		
    %%
    code block
    %%		
    • WikiAdmin
    • 11/18/2026 09:53 edited
Log in or create an account to post a comment.