CSS-code.txt 1012 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. Code
  2. ===============================================================================
  3. Inline
  4. ------
  5. Wrap inline snippets of code with `:code:`.
  6. .. container:: bs-example
  7. For example, `<section>` should be wrapped as inline.
  8. .. code::
  9. :class: highlight
  10. For example, :code:`<section>` should be wrapped as inline.
  11. User input
  12. ----------
  13. Use the `:kbd:` to indicate input that is typically entered via keyboard.
  14. .. container:: bs-example
  15. To switch directories, type :kbd:`cd` followed by the name of the directory.
  16. .. code::
  17. :class: highlight
  18. To switch directories, type :kbd:`cd` followed by the name of the directory.
  19. Basic block
  20. -----------
  21. Use `.. code::` for multiple lines of code. Be sure to escape any angle brackets in
  22. the code for proper rendering.
  23. .. container:: bs-example
  24. Sample text here...
  25. .. code::
  26. :class: highlight
  27. Sample text here...
  28. You may optionally add the pre-scrollable class, which will set a max-height
  29. of 350px and provide a y-axis scrollbar.