Python Forum

Full Version: nested numbered lists
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to get nested numbered lists with bbcode?
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
what I wanted was:
Output:
1. 2. 2.1 2.2 3.
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
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.