Python Forum
nested numbered lists - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Forum & Off Topic (https://python-forum.io/forum-23.html)
+--- Forum: Board (https://python-forum.io/forum-26.html)
+--- Thread: nested numbered lists (/thread-10594.html)



nested numbered lists - Larz60+ - May-26-2018

How to get nested numbered lists with bbcode?


RE: nested numbered lists - snippsat - May-26-2018

After get rid of WYSIWYG mode Hand ,the auto generated list won't work anymore.
Do it as show under,it start correct when click on numbered lists,then just copy [*] as many number wanted.
  1. Blue
  2. Red
  3. Green



RE: nested numbered lists - Larz60+ - May-26-2018

what I wanted was:
Output:
1. 2. 2.1 2.2 3.



RE: nested numbered lists - snippsat - May-26-2018

Can get nest together,and also use a bullet list to avoid number.
  1. Red
    • 2.1 Brown
    • 2.2 Green
      1. Orange
  • Black
But it's easier to show a tree structure using code tag.
I use this to eg show a folder/file path.
my_pack/
  |-- __init__.py 
  folder_a/
    |-- __init__.py
    |-- f1.py
  folder_b/
    |-- __init__.py
    |-- f2.py



RE: nested numbered lists - Larz60+ - May-27-2018

Thanks, I want numbered so that user can reference step numbers. And some of the steps are actually sub-steps
so this is perfect.
I have used the tree structure that you show either exactly or very similar for directory trees.