Create a menu module in the "menu" position
Create several menu items including one that is of the type "system/seperator"
the seperator is displayed as
| menu title
If using either of the layouts from cassiopeia
If using wither of the core layouts
No Code Attached Yet
I cannot imagine what you are expecting, could you share some design or screen?
The intention was a vertical line in horizontal menus and a text (due to b/c) in vertical menus.
You also can use an image or icon as separator.