Skip to content

Commit d314503

Browse files
author
Thierry Boileau
committed
prevent inline style when highlighting code
1 parent dd4d859 commit d314503

File tree

375 files changed

+1524
-1522
lines changed

Some content is hidden

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

375 files changed

+1524
-1522
lines changed

content/documentation/tutorials/1.0/access-logging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ configuration file by setting a system property like:
2020

2121
{{< highlight java "style=emacs" >}}System.setProperty("java.util.logging.config.file",
2222
"/your/path/logging.config");
23-
{{</ highlight >}}
23+
{{< /highlight >}}
2424

2525
For details on the configuration file format, please check the [JDK's
2626
LogManager](http://docs.oracle.com/javase/1.5.0/docs/api/index.html?java/util/logging/LogManager.html)

content/documentation/tutorials/1.0/guard-access.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ guard.getSecrets().put("scott", "tiger".toCharArray());
3535
Directory directory = new Directory(getContext(), ROOT_URI);
3636
guard.setNext(directory);
3737
return guard;
38-
{{</ highlight >}}
38+
{{< /highlight >}}
3939

4040
![](../images/tutorial09.png)
4141

@@ -73,7 +73,7 @@ if (response.getStatus().isSuccess()) {
7373
System.out.println("An unexpected status was returned: "
7474
+ response.getStatus());
7575
}
76-
{{</ highlight >}}
76+
{{< /highlight >}}
7777

7878
You can change the user ID or password sent by this test client in order
7979
to check the response returned by the server. Remember to launch the

content/documentation/tutorials/1.0/listen-web-browser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Restlet restlet = new Restlet() {
2525

2626
// Create the HTTP server and listen on port 8182
2727
new Server(Protocol.HTTP, 8182, restlet).start();
28-
{{</ highlight >}}
28+
{{< /highlight >}}
2929

3030
If you run this code and launch your server, you can open a Web browser
3131
and hit the <http://localhost:8182>. Actually, any URI will work, try

content/documentation/tutorials/1.0/reach-target-resources.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ router.attach("/users/{user}/orders/{order}",
5151

5252
// Return the root router
5353
return router;
54-
{{</ highlight >}}
54+
{{< /highlight >}}
5555

5656
We will finally review one of the resource classes, the UserResource
5757
class. This class derives from org.restlet.resource.Resource and
@@ -91,7 +91,7 @@ handled, all this transparently.
9191
return result;
9292
}
9393
}
94-
{{</ highlight >}}
94+
{{< /highlight >}}
9595

9696
You can have a look at the rest of the code in the tutorial package and
9797
test the application. You will obtain the same behavior as in Part11,

content/documentation/tutorials/1.0/rest-concepts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ component.getDefaultHost().attach("/trace", restlet);
7272
// Now, let's start the component!
7373
// Note that the HTTP server connector is also automatically started.
7474
component.start();
75-
{{</ highlight >}}
75+
{{< /highlight >}}
7676

7777
Now let's test it by entering
7878
<http://localhost:8182/trace/abc/def?param=123> in a Web browser. Here
@@ -82,4 +82,4 @@ is the result that you will get:
8282
Root URI : http://localhost:8182/trace
8383
Routed part : http://localhost:8182/trace
8484
Remaining part: /abc/def?param=123
85-
{{</ highlight >}}
85+
{{< /highlight >}}

content/documentation/tutorials/1.0/retrieve-content.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ it in the JVM console:
1818
{{< highlight java "style=emacs" >}}// Outputting the content of a Web page
1919
Client client = new Client(Protocol.HTTP);
2020
client.get("http://restlet.com").getEntity().write(System.out);
21-
{{</ highlight >}}
21+
{{< /highlight >}}
2222

2323
Note that the example above uses a simplified way to issue calls via the
2424
generic Client class. A more flexible way is to create a new Request
@@ -38,4 +38,4 @@ Response response = client.handle(request);
3838
// Write the response entity on the console
3939
Representation output = response.getEntity();
4040
output.write(System.out);
41-
{{</ highlight >}}
41+
{{< /highlight >}}

content/documentation/tutorials/1.0/serve-static-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Application application = new Application(component.getContext()) {
2727
// Attach the application to the component and start it
2828
component.getDefaultHost().attach("", application);
2929
component.start();
30-
{{</ highlight >}}
30+
{{< /highlight >}}
3131

3232
As you may notice, the application is instantiated by passing the
3333
context of its parent component, contrary to the previous sample code

content/documentation/tutorials/1.0/uris.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Route route = component.getDefaultHost().attach("/search", application);
4040
// will be routed to
4141
// http://www.google.com/search?q=site:mysite.org+myKeyword1%20myKeyword2
4242
route.extractQuery("keywords", "kwd", true);
43-
{{</ highlight >}}
43+
{{< /highlight >}}
4444

4545
Note that the Redirector needs three parameters only. The first is the
4646
parent context, the second one defines how the URI rewriting should be
@@ -155,7 +155,7 @@ Application application = new Application(component.getContext()) {
155155
// Attach the application to the component and start it
156156
component.getDefaultHost().attach(application);
157157
component.start();
158-
{{</ highlight >}}
158+
{{< /highlight >}}
159159

160160
Please note that the values of the variables are directly extracted from
161161
the URI and are therefore not percent-decoded. In order to achieve such

content/documentation/tutorials/1.1/access-logging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ configuration file by setting a system property like:
2020

2121
{{< highlight java "style=emacs" >}}System.setProperty("java.util.logging.config.file",
2222
"/your/path/logging.config");
23-
{{</ highlight >}}
23+
{{< /highlight >}}
2424

2525
For details on the configuration file format, please check the [JDK's
2626
LogManager](http://docs.oracle.com/javase/1.5.0/docs/api/index.html?java/util/logging/LogManager.html)

content/documentation/tutorials/1.1/guard-access.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Directory directory = new Directory(getContext(), ROOT_URI);
3838
guard.setNext(directory);
3939

4040
return guard;
41-
{{</ highlight >}}
41+
{{< /highlight >}}
4242

4343
![](../images/tutorial09.png)
4444

@@ -76,7 +76,7 @@ if (response.getStatus().isSuccess()) {
7676
System.out.println("An unexpected status was returned: "
7777
+ response.getStatus());
7878
}
79-
{{</ highlight >}}
79+
{{< /highlight >}}
8080

8181
You can change the user ID or password sent by this test client in order
8282
to check the response returned by the server. Remember to launch the

0 commit comments

Comments
 (0)