# NOT RUN {
# as long as the order of the markers is correct, the lines are ignored.
style_text(
"
1+1
# styler: off
1+1
# styler: on
1+1
"
)
# if there is a stop marker before a start marker, styler won't be able
# to figure out which lines you want to ignore and won't ignore anything,
# issuing a warning.
# }
# NOT RUN {
style_text(
"
1+1
# styler: off
1+1
# styler: off
1+1
"
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab