Here is a complete code with dividers, headers, ... you can config it for your needs (See "Config" Section of the code).
For making a divider, you have to name the playlist '-'
For making a section header, the playlist name has to start with '-' (won't show up itself).
If you want different playlist view styles for different purposes (Radio, Audiobooks, etc), you can append '-AB' , '-R' or 'S' to the playlist (has to be configured in the columns-setup as well)...but this was not what you were asking for
CODE
////////CONFIG////////
////HEADER COLOR////
$puts(headercol,$rgb(255,128,0,255,255,255))
////NORMAL PLAYLIST COLOR////
$puts(listcol,$rgb(0,0,0,255,255,255))
////NOW PLAYING////'?' '?'
$puts(nowplaycol,$rgb(0,0,0,255,255,255))
$puts(nowplayindic_a,'>>' )
$puts(nowplayindic_b, '<<')
$puts(nowplayindic_col,$rgb(255,128,0,255,128,0))
////ITEM-COUNTER COLOR////
$puts(countercol,$rgb(144,144,144,255,255,255))
////FADING LINE COLORS////
$puts(fadebegin,$rgb(255,128,0,255,255,255))
$puts(fadeend,$rgb(255,255,255,255,128,0))
//FADING IN SECTION HEADER//
$puts(fadesymbola1,/)
$puts(fadesymbola2,/)
$puts(fadelengtha1,4)
$puts(fadelengtha2,73)
//FADING IN DIVIDER//
$puts(fadesymbolb1,--)
$puts(fadesymbolb2,)
$puts(fadelengthb,35)
////////CONFIG-END////////
$if($greater($len(%title%),0),
$if($strcmp(%title%,-),
$transition($repeat($get(fadesymbolb1),$get(fadelengthb)),$get(fadebegin),$get(fadeend))
$transition($repeat($get(fadesymbolb2),$get(fadelengthb)),$get(fadeend),$get(fadebegin)),
$if($strcmp($left(%title%,1),-),$transition($repeat($get(fadesymbola1),$get(fadelengtha1)),$get(fadebegin),$get(fadeend))$get(headercol)
$substr(%title%,2,$len(%title%)) $transition($repeat($get(fadesymbola2),$get(fadelengtha2)),$get(fadeend),$get(fadebegin)),
$if($stricmp($right(%title%,3),-AB),
$if(%is_playing%,$get(nowplayindic_col)$get(nowplayindic_a)$get(nowplaycol)$left(%title%,$sub($len(%title%),3))$get(nowplayindic_col)$get(nowplayindic_b),$get(listcol)$left(%title%,$sub($len(%title%),3))),
$if($stricmp($right(%title%,2),'-S'),
$if(%is_playing%,$get(nowplayindic_col)$get(nowplayindic_a)$get(nowplaycol)$left(%title%,$sub($len(%title%),2))$get(nowplayindic_col)$get(nowplayindic_b),$get(listcol)$left(%title%,$sub($len(%title%),2))),
$if($stricmp($right(%title%,2),'-R'),
$if(%is_playing%,$get(nowplayindic_col)$get(nowplayindic_a)$get(nowplaycol)$left(%title%,$sub($len(%title%),2))$get(nowplayindic_col)$get(nowplayindic_b),$get(listcol)$left(%title%,$sub($len(%title%),2))),
$if(%is_playing%,$get(nowplayindic_col)$get(nowplayindic_a)$get(nowplaycol)%title%
$get(nowplayindic_col)$get(nowplayindic_b),$get(listcol)%title%)
))))))
$tab()
$ifgreater(%size%,0,$if(%is_playing%,$get(nowplayindic_col)$get(nowplayindic_b) ,)$get(countercol)|%size%|,)