stateDiagram-v2
    accTitle: This is the accessible title
    accDescr: This is an accessible description

    %% this is a comment
    % a comment ???
    direction LR

    [*] --> First
    Second --> [*]
    First-->Second

    state "This is a state description" as s2

    % a comment
    %% a comment
    s1:%% a comment
    s2: %% not a comment !!!
    s3:% not a comment
    s4 %% a comment
    s5 % a comment
    s6%%not_comment
    s7 --> s6 %% another comment
    s8 %% another comment

    %% oups
    state S and %% not a comment...
    <beginfold id='1'>{</beginfold id='1'>
        X
    <endfold id='1'>}</endfold id='1'>

    s1 --> s2: A transition

    state NamedComposite <beginfold id='1'>{</beginfold id='1'>
        [*] --> namedSimple
        namedSimple --> [*]
        namedSimple: Another simple
        --
        [*] --> NumLockOff
        NumLockOff --> NumLockOn : EvNumLockPressed
        NumLockOn --> NumLockOff : EvNumLockPressed

        state Second <beginfold id='1'>{</beginfold id='1'>
            [*] --> second
            second --> Third
        <endfold id='1'>}</endfold id='1'>
    <endfold id='1'>}</endfold id='1'>

    state if_state <<choice>>
    if_state --> False: if n < 0
    if_state --> True : if n >= 0

    note right of First
        Important information! You can write
        %%  \________/ end...
        notesend note
    note left of State2 : This is the note to the left.

    classDef movement fill:#f00,color:white,font-weight:bold,stroke-width:2px,stroke:yellow

    class Moving,Crash movement

    Moving --> Crash:::movement
    Crash:::badBadEvent --> [*]
