Transform your code snippets into beautifully formatted HTML ready for SharePoint wiki pages. This utility helps you maintain code readability and syntax highlighting in SharePoint's .aspx pages.
- 🎨 Automatic syntax highlighting
- 📋 One-click copy to clipboard
- 🔄 Preserves code structure and formatting
- 🎯 Optimized for SharePoint wiki pages
- 💼 Works with multiple programming languages
- 🌙 Dark theme syntax highlighting
- Visit: https://ayoobflorival.com/code-to-snippet/
- Paste your code into the input field
- Click "Format Code" to generate the HTML
- Copy the formatted HTML
- In SharePoint:
- Edit your wiki page
- Add an "Embed Code" web part
- Paste the formatted HTML
- Save your page
If you want to run this tool locally:
- Clone the repository:
git clone https://github.com/Ayoobf/code-to-snippet.git
- Open
index.html
in your browser
No build process or dependencies required!
Works with all modern browsers:
- Chrome
- Firefox
- Edge
- Safari
Feel free to open issues or submit pull requests if you have suggestions for improvements.
MIT License - feel free to use and modify as needed.
Created by Ayoob Florival
Made with ❤️ to make SharePoint documentation better