Skip to content

Instantly share code, notes, and snippets.

@DavideDunne
Created May 19, 2024 04:43
Show Gist options
  • Save DavideDunne/808c55a9335074c842159f9fe7a8fb85 to your computer and use it in GitHub Desktop.
Save DavideDunne/808c55a9335074c842159f9fe7a8fb85 to your computer and use it in GitHub Desktop.
code preview in emacs org-mode

my second test

To get started with org-mode Link

Things to learn

Tests

Python

  • This is code block for Latex
       print("hello world")
       while(True):
    	  print("hello")
        

C++

  • This is a C++ code block
    // Your First C++ Program
    #include <iostream>
    int main() {
      std::cout << "Hello World!";
      return 0;
    }
        

C#

  • I doubt this will work lol
    Console.WriteLine("hello world");
    var myVar = 5;
        
  • It works, so epic

Latex

  • For LaTex preview Link Video
    • In windows just install MikTex
    • C-c C-x C-l to create image preview

$$eπ i=-1$$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment