Skip to content

Commit ce133a9

Browse files
committed
indent workaround for markdown scanner
1 parent 9bec2b5 commit ce133a9

File tree

51 files changed

+614
-614
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+614
-614
lines changed

docs/sp-add-ins/access-sharepoint-data-from-add-ins-using-the-cross-___domain-library.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Figure 2 shows a webpage that displays the data on the add-in web.
107107

108108
3. Double click **Announcements** **>** **Elements.xml**. Paste the following XML nodes as children of the **ListInstance** element.
109109

110-
```
110+
```
111111
<Data>
112112
<Rows>
113113
<Row>
@@ -120,7 +120,7 @@ Figure 2 shows a webpage that displays the data on the add-in web.
120120
</Row>
121121
</Rows>
122122
</Data>
123-
```
123+
```
124124

125125

126126
### To add a new page that uses the cross-___domain library
@@ -158,7 +158,7 @@ Figure 2 shows a webpage that displays the data on the add-in web.
158158

159159

160160

161-
```
161+
```
162162
163163
<html>
164164
<head>
@@ -262,7 +262,7 @@ Figure 2 shows a webpage that displays the data on the add-in web.
262262
</script>
263263
</body>
264264
</html>
265-
```
265+
```
266266

267267

268268
### To build and run the solution

docs/sp-add-ins/add-a-custom-content-type-to-a-sharepoint-hostedsharepoint-add-in.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ In this article you add a custom content type to the Employee Orientation ShareP
7373

7474
11. There are already **FieldRef** elements in the file for the two columns that you added. Add **FieldRef** elements for two built-in SharePoint columns as peers of the two that are already there. The following is the markup for the elements. *You must use these same GUIDs for the ID attribute because these are built-in field types with fixed IDs.* Add these *above* the two **FieldRef** elements for the custom site columns.
7575

76-
```
76+
```
7777
<FieldRef Name="LinkTitle" ID="{82642ec8-ef9b-478f-acf9-31f7d45fbc31}" DisplayName="Employee" />
7878
<FieldRef Name="Title" ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" DisplayName="Employee" />
79-
```
79+
```
8080

8181

8282
Note that we have given these fields a custom display name: **Employee**.
@@ -118,25 +118,25 @@ In this article you add a custom content type to the Employee Orientation ShareP
118118

119119
24. Still in the schema.xml file, in the **View** element whose **BaseViewID** value is "1", find the child **ViewFields** element and then add the following two **FieldRef** elements as children of it. They may already be there, but missing an **ID** attribute. If so, add the ID attribute.
120120

121-
```
121+
```
122122
<FieldRef Name="Division" ID="{GUID from the Field element}" />
123123
<FieldRef Name="OrientationStage" ID="{GUID from the Field element}" />
124124
125-
```
125+
```
126126

127127
25. Replace the two placeholder **ID** attribute values with the GUIDs from the corresponding **Field** elements in the **ContentType** element for **NewEmployee** that is earlier in the schema.xml file. Don't forget the framing braces "{}".
128128

129129
The **ViewFields** for the "1" **View** should look like this. (Your GUIDs may be different.)
130130

131131

132132

133-
```
133+
```
134134
<ViewFields>
135135
<FieldRef Name="LinkTitle" ID="{82642ec8-ef9b-478f-acf9-31f7d45fbc31}" DisplayName="Employee" />
136136
<FieldRef Name="Division" ID="{509d2d67-9a96-4596-9b3b-58449cdcc6ff}" />
137137
<FieldRef Name="OrientationStage" ID="{38a3b54c-acf3-4ddf-b748-55c7c28d4cc2}" />
138138
</ViewFields>
139-
```
139+
```
140140

141141
26. Still in the schema.xml file, find the **View** element whose **BaseViewID** value is "0". find the **ViewFields** element with in it.
142142

@@ -152,15 +152,15 @@ In this article you add a custom content type to the Employee Orientation ShareP
152152

153153
30. Add two **Field** elements to the first **Row** element, so that the **Row** element looks like the following.
154154

155-
```
155+
```
156156
157157
<Row>
158158
<Field Name="Title">Tom Higginbotham</Field>
159159
<Field Name="Division">Manufacturing</Field>
160160
<Field Name="OrientationStage">Tour of building</Field>
161161
</Row>
162162
163-
```
163+
```
164164

165165
31. Save and close the file.
166166

docs/sp-add-ins/add-a-custom-page-and-style-to-a-sharepoint-hosted-sharepoint-add-in.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,28 +47,28 @@ In this article you add a help page to the Employee Orientation SharePoint Add-i
4747

4848
3. Find the two **asp:Content** elements in the file, and add the following third **asp:Content** markup in between them.
4949

50-
```HTML
50+
```HTML
5151
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
5252
Help
5353
</asp:Content>
54-
```
54+
```
5555

5656
4. Find the **asp:Content** element with the ID of **PlaceholderAdditionalPageHead**, and add the following markup to it.
5757

58-
```HTML
58+
```HTML
5959
<link rel="Stylesheet" type="text/css" href="../Content/App.css" />
60-
```
60+
```
6161

6262
5. Find the **asp:Content** element with the ID of **PlaceHolderMain**, and remove any child elements in it.
6363

6464

6565
6. Add the following as content to the same **asp:Content** element.
6666

67-
```HTML
67+
```HTML
6868
<H3>Having a problem with the add-in?</H3>
6969
<p> Call the help line for Fabrikam Add-ins:</p>
7070
<p>1-555-555-5555</p>
71-
```
71+
```
7272

7373
7. Save and close the file.
7474

@@ -78,11 +78,11 @@ In this article you add a help page to the Employee Orientation SharePoint Add-i
7878

7979
9. Find the **asp:Content** element with the ID of **PlaceHolderMain**, and then add the following markup to the end of it.
8080

81-
```HTML
81+
```HTML
8282
<p><asp:HyperLink runat="server" NavigateUrl="JavaScript:window.___location = _spPageContextInfo.webAbsoluteUrl + '/Pages/Help.aspx';"
8383
Text="Get help for the Employee Orientation add-in" /></p>
8484

85-
```
85+
```
8686

8787
10. Save and close the file.
8888

@@ -97,9 +97,9 @@ In this article you add a help page to the Employee Orientation SharePoint Add-i
9797

9898
1. In **Solution Explorer**, open the app.css file in the **Contents** folder, and then add the following line to the file.
9999

100-
```
100+
```
101101
p {color: green;}
102-
```
102+
```
103103

104104
2. Save and close the file.
105105

docs/sp-add-ins/add-a-web-part-to-a-page-in-a-sharepoint-hosted-sharepoint-add-in.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ In this article you add a Web Part to the default page of the Employee Orientati
4242

4343
3. Inside the same **<asp:Content>** element, add the following **WebPartZone**.
4444

45-
```XML
45+
```XML
4646
<WebPartPages:WebPartZone runat="server" FrameType="TitleBarOnly"
4747
ID="HomePage1" Title="loc:full" />
4848

49-
```
49+
```
5050

5151
4. Save and close the file.
5252

@@ -59,7 +59,7 @@ In this article you add a Web Part to the default page of the Employee Orientati
5959

6060
7. In the **File** element, add a child **AllUsersWebPart** element and set its **WebPartZoneID** to the ID of the Web Part zone that you created on the page. The file's contents should now look like the following. This markup tells SharePoint to insert an **AllUsersWebPart** into the Web Part zone that is named "HomePage1".
6161

62-
```
62+
```
6363
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
6464
<Module Name="Pages">
6565
<File Path="Pages\Default.aspx" Url="Pages/Default.aspx" ReplaceContent="TRUE" >
@@ -70,23 +70,23 @@ In this article you add a Web Part to the default page of the Employee Orientati
7070
</Module>
7171
</Elements>
7272
73-
```
73+
```
7474

7575
8. Add a **CDATA** element as a child of the **AllUsersWebPart**, then add a **webParts** element as a child of the **CDATA**, as shown in the following markup.
7676

77-
```
77+
```
7878
<AllUsersWebPart WebPartZoneID="HomePage1" WebPartOrder="1">
7979
<![CDATA[
8080
<webParts>
8181
8282
</webParts>
8383
]]>
8484
</AllUsersWebPart>
85-
```
85+
```
8686

8787
9. Add the following **webPart** markup as a child of the **webParts** element. This markup adds an **XsltListViewWebPart** and tells the Web Part to show theNew Employees in Seattle list. Note that the **ViewContentTypeId** property value is just "0x", not the actual ID of theNewEmployee content type.
8888

89-
```
89+
```
9090
9191
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
9292
<metaData>
@@ -106,7 +106,7 @@ In this article you add a Web Part to the default page of the Employee Orientati
106106
</properties>
107107
</data>
108108
</webPart>
109-
```
109+
```
110110

111111

112112
## Run and test the add-in

docs/sp-add-ins/add-custom-columns-to-a-sharepoint-hostedsharepoint-add-in.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ In this article we get back to coding by adding some site columns to the Employe
3939

4040
4. In the elements.xml file for the new site column, edit the **Field** element so that it has the attributes and values shown in the following example, except that *you should **not** change the GUID* for the **ID** attribute from the value that Visual Studio generated for it, *so be careful if you are using copy-and-paste* .
4141

42-
```
42+
```
4343
<Field ID="{generated GUID}"
4444
Name="Division"
4545
Title="Division"
@@ -49,14 +49,14 @@ In this article we get back to coding by adding some site columns to the Employe
4949
Type="Text"
5050
Required ="FALSE">
5151
</Field>
52-
```
52+
```
5353

5454
5. Add another **Site Column** to the same folder namedOrientationStage.
5555

5656

5757
6. In the elements.xml file for the new site column, edit the **Field** element so that it has the attributes and values shown in the following example, except that you should not change the GUID for the **ID** attribute from the value that Visual Studio generated for it.
5858

59-
```
59+
```
6060
<Field ID="{generated GUID}"
6161
Name="OrientationStage"
6262
Title="OrientationStage"
@@ -66,11 +66,11 @@ In this article we get back to coding by adding some site columns to the Employe
6666
Type="Choice"
6767
Required ="TRUE">
6868
</Field>
69-
```
69+
```
7070

7171
7. Because this is a Choice field, you must specify the possible choices and the order in which they should appear in the drop-down list when a user is making a choice. And because it is a required field, you must specify a default value. Add the following child markup to the **Field** element.
7272

73-
```
73+
```
7474
<CHOICES>
7575
<CHOICE>Not Started</CHOICE>
7676
<CHOICE>Tour of building</CHOICE>
@@ -86,7 +86,7 @@ In this article we get back to coding by adding some site columns to the Employe
8686
<MAPPING Value="5">Completed</MAPPING>
8787
</MAPPINGS>
8888
<Default>Not Started</Default>
89-
```
89+
```
9090

9191
8. Save all files.
9292

0 commit comments

Comments
 (0)