logo

Code Block With Prism.js

Some post with code!

Some other posts! with some inline code!

sample.js
const a = 1;
a = 2;
App.tsx
import '@/styles/globals.css';

import type { AppProps } from 'next/app';
import Head from 'next/head';
import { ThemeProvider } from 'next-themes';

import LayoutWrapper from '@/components/LayoutWrapper';

function MyApp({ Component, pageProps }: AppProps) {
  return (
    <ThemeProvider attribute="class">
      <Head>
        <meta name="viewport" content="viewport-fit=cover" />
      </Head>
      <LayoutWrapper>
        <Component {...pageProps} />
      </LayoutWrapper>
    </ThemeProvider>
  );
}

export default MyApp;
const a = 1;
- a = 2;
+ a = 2;
a = 3;
$ echo "Hello world!"
print("Hello world!")
System.out.println("Hello world!");
Console.WriteLine("Hello world!");
printf("Hello world!");
std::cout << "Hello world!";
fmt.Println("Hello world!")