Skip to content

Commit 46ac1fc

Browse files
author
dksimpson
committed
Fix code block appearance
1 parent 944a952 commit 46ac1fc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

articles/cognitive-services/Bing-Image-Search/quickstarts/java.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ The source code for this sample is available [on GitHub](https://github.com/Azur
5555

5656
Use the variables from the previous step to format a search URL for the API request. URL-encode the search term before you appended it to the request.
5757

58-
```java
59-
// construct the search request URL (in the form of endpoint + query string)
60-
URL url = new URL(host + path + "?q=" + URLEncoder.encode(searchQuery, "UTF-8"));
61-
HttpsURLConnection connection = (HttpsURLConnection)url.openConnection();
62-
connection.setRequestProperty("Ocp-Apim-Subscription-Key", subscriptionKey);
63-
```
58+
```java
59+
// construct the search request URL (in the form of endpoint + query string)
60+
URL url = new URL(host + path + "?q=" + URLEncoder.encode(searchQuery, "UTF-8"));
61+
HttpsURLConnection connection = (HttpsURLConnection)url.openConnection();
62+
connection.setRequestProperty("Ocp-Apim-Subscription-Key", subscriptionKey);
63+
```
6464

6565
## Receive and process the JSON response
6666

articles/cognitive-services/Bing-Image-Search/quickstarts/python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ms.custom: seodec2018
1717

1818
Use this quickstart to learn how to send search requests to the Bing Image Search API. This Python application sends a search query to the API, and displays the URL of the first image in the results. Although this application is written in Python, the API is a RESTful web service compatible with most programming languages.
1919

20-
To run this example as a Jupyter notebook on [MyBinder](https://mybinder.org), select the launch Binder badge:
20+
To run this example as a Jupyter notebook on [MyBinder](https://mybinder.org), select the **launch binder** badge:
2121

2222
[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/Microsoft/cognitive-services-notebooks/master?filepath=BingImageSearchAPI.ipynb)
2323

0 commit comments

Comments
 (0)