Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Anyone have any suggestions on how to write Pseudo Code in Asciidoc?
I tried something like: IF some condition:: *Method* and it's description:::: else:: Some other *Method* and it's description:::: EndIf but this got ugly quick when the nesting started going deep and I needed deeper indentation (only 3 or 4 levels though). I thought about using [source,pseudo], but this doesn't exist and it only helps in preserving indentation, but I want to be able to bold some text in the pseudo code too. This is not formal Pseudo code, I just want a good way to communicate some Logic to Business Analyst types that are not programmers and don't want to read code. I ended up using Mermaid and creating a flowchart, but I would have preferred something simpler and am looking for ideas for ways I might incorporate nice looking Pseudo code into AsciiDoc. Thanks, Smitty |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
You can apply inline formatting in source blocks by specifying quotes substitution:
[source,subs=+quotes] Is this what you’re looking for? David Jencks
... [show rest of quote] |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Thanks David,
This renders like this: IF some condition:: Method and it's description:::: else:: Some other Method and it's description:::: EndIf And it didn't bold the Method name and just removed the *'s. Though you got me digging through the documentation with this clue and I did get it to work with this. [subs="quotes"] ---- IF some condition *Method* and it's _description_ else:: Some other *Method* and it's _description_ EndIf ---- thanks!! |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
You should almost never use just "quotes" alone for subs. If you want preformatted text, but still allow formatting and macros, then you should use [subs=normal] If you only need formatting (not macros), then you can use: [subs="specialchars,quotes"] Best Regards, -Dan On Sat, Jan 30, 2021 at 2:33 PM smitty4doc [via Asciidoctor :: Discussion] <[hidden email]> wrote: Thanks David, ... [show rest of quote] -- Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux |
Free forum by Nabble | Edit this page |