News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

bbcode for complex numbered lists

Started by brynn, April 02, 2025, 06:01:01 PM

Previous topic - Next topic

brynn

Hi Friends,
I've done a bit of searching for this, but I can't seem to find the answer. In writing tutorials, I need to make complex lists. For example, I might start with steps 1, 2, and 3. Then I start a different numbered list for a, b, c, and d. (3a, 3b, 3c and 3d)

But now I come back to the main steps, where I need to start the next list at 4. But if I start another numbered list, it starts with 1.

Is there some way to start a list at any number besides 1? Or will I have to just avoid using the numbered list bbcode, and just format and type the numbers myself?

Thank you very much  ;D

Sesquipedalian

The WYSIWYG editor can't do this, but you can do it if you toggle the editor into source mode and use raw BBCode.

[list type=decimal]
[li]one[/li]
[li]two[/li]
[li]three
[list type=lower-alpha]
[li]first[/li]
[li]second[/li]
[li]third[/li]
[/list]
[/li]
[li]four[/li]
[/list]

Result:

  • one
  • two
  • three
    • first
    • second
    • third
  • four
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

brynn

Oh I see....

Well I'm a little confused. Because even in wysiwyg mode, you still see the bbcode for lists. But you're saying that I still need to switch to the source mode, to write the list codes properly?

Ok, I will experiment and see what happens.

Thank you very much!


Sesquipedalian

SCEditor, which is the JavaScript code package that SMF uses for WYSIWYG mode, does not provide a way to create nested lists in WYSIWYG mode. It will, however, respect nested lists if you create them in source mode.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

brynn

Thanks, I got it to work perfectly!

Advertisement: