Skip to content

Ayoobf/sharepoint-code-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SharePoint Code Formatter

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.

Features

  • 🎨 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

How to Use

  1. Visit: https://ayoobflorival.com/code-to-snippet/
  2. Paste your code into the input field
  3. Click "Format Code" to generate the HTML
  4. Copy the formatted HTML
  5. In SharePoint:
    • Edit your wiki page
    • Add an "Embed Code" web part
    • Paste the formatted HTML
    • Save your page

Local Development

If you want to run this tool locally:

  1. Clone the repository:
git clone https://github.com/Ayoobf/code-to-snippet.git
  1. Open index.html in your browser

No build process or dependencies required!

Browser Support

Works with all modern browsers:

  • Chrome
  • Firefox
  • Edge
  • Safari

Contributing

Feel free to open issues or submit pull requests if you have suggestions for improvements.

License

MIT License - feel free to use and modify as needed.

Author

Created by Ayoob Florival


Made with ❤️ to make SharePoint documentation better

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published