From e6afd448d26b70577d101d30899fdb54653f98d1 Mon Sep 17 00:00:00 2001 From: Meir Blachman Date: Sat, 15 Jun 2024 23:20:48 +0300 Subject: [PATCH] prettify java-packages/codesnippet-maven-plugin readme java snippets --- packages/java-packages/codesnippet-maven-plugin/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/java-packages/codesnippet-maven-plugin/README.md b/packages/java-packages/codesnippet-maven-plugin/README.md index 2beb6a95e62..5002c504d3e 100644 --- a/packages/java-packages/codesnippet-maven-plugin/README.md +++ b/packages/java-packages/codesnippet-maven-plugin/README.md @@ -59,7 +59,7 @@ match the reference. Within working Java code, we have a snippet definition. The string after the `BEGIN:` or `END:` comments is an identifier that can be referenced from Javadocs or READMEs. -``` +```java public ConfigurationClient createSyncConfigurationClient() { String connectionString = getConnectionString(); // BEGIN: com.azure.data.applicationconfig.configurationclient.instantiation @@ -77,8 +77,9 @@ The above example defines a code snippet of identifier `com.azure.data.applicati Within a javadoc comment, a snippet is referenced by a matching pair html comments. -``` +```java ... +/* *

Instantiating a synchronous Configuration Client

* * @@ -94,8 +95,9 @@ public final class ConfigurationClient { ``` After update runs: -``` +```java ... +/* *

Instantiating a synchronous Configuration Client

* *