SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Are there any functions in SharePoint designer 2007 that can arrange my coding in correct indent. I tried the right click and select Reformat HTML but it only format my HTML code only. All the CSS and Javascript and other scripts are in wrong indent / format.

I am also open for any standalone solution (and preferable portable ones) that can help me arrange my coding inside SharePoint Designer 2007.

share|improve this question
up vote 0 down vote accepted

SharePoint Designer 2007 is pretty horrible when it comes to formatting and indentation. It always insists on moving things around the way it thinks best, which I find is rarely aligned with basic common sense.

You should extract your CSS and Javascript and edit them in another editor. Visual Studio does a much better job (Ctrl-K,D), if you can have it. If not there are code formatting plugins for NotePad++ or TextPad.

Extracting your code will also ease reuse and caching.

share|improve this answer

I am afraid there is very little effort from Microsoft's side when it comes to SharePoint Designer add-ins. You can try the following link:

TechNet: how to develop custom add-in for sharepoint designer 2010

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.