Advertisement
Guest User

Untitled

a guest
Nov 16th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. **for nicely inserting code snippets:**
  2. ` ```[language identifier] `
  3. `your code here`
  4. ` ``` `
  5.  
  6. For example, the *identifier* for c++ is `cpp`:
  7. ` ```cpp `
  8. `.`
  9. `.`
  10. `.`
  11. ` ``` `
  12.  
  13. enables c++ syntax highlighting, resulting in a block of code that looks like this:
  14. ```cpp
  15. #include <iostream> //std::cerr, std::cout, std::cin
  16. #include <string> //because c-strings are gross
  17.  
  18. int main()
  19. {
  20. using std::string;
  21. using std::cout;
  22. using std::cin;
  23. using std::cout;
  24.  
  25. /* do stuff */
  26. return 0;
  27. }
  28. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement