Skip to content

Commit 6fe6b65

Browse files
Merge pull request #41 from DenisLukichev/drivers-coppy-to-clipboad
Add copy to clipboard icon to code blocks
2 parents e25278f + 44288f6 commit 6fe6b65

5 files changed

+9
-9
lines changed

documentation/connect-drivers-dotnet.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ link:https://www.nuget.org/packages/Neo4j.Driver/.
77
== Connect to the database
88

99

10-
[source, csharp, role=nocollapse]
10+
[source, csharp, role=nocollapse, copy=true]
1111
----
1212
using Neo4j.Driver;
1313

documentation/connect-drivers-go.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
From within a module, use `go get` to install the link:https://pkg.go.dev/github.com/neo4j/neo4j-go-driver/v5/[Neo4j Go Driver]:
44

5-
[source, bash]
5+
[source, bash, copy=true]
66
----
77
go get github.com/neo4j/neo4j-go-driver/v5
88
----
@@ -15,7 +15,7 @@ link:https://neo4j.com/docs/go-manual/current/install/#install-driver[More info
1515
Connect to a database by creating a `DriverWithContext` object and providing a URL and an authentication token.
1616
Once you have a `DriverWithContext` instance, use the `.VerifyConnectivity()` method to ensure that a working connection can be established.
1717

18-
[source, go, role=nocollapse]
18+
[source, go, role=nocollapse, copy=true]
1919
----
2020
package main
2121

documentation/connect-drivers-java.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Add the Neo4j Java driver to the list of dependencies in the `pom.xml` of your Maven project:
44

5-
[source, xml, subs="attributes+"]
5+
[source, xml, subs="attributes+", copy=true]
66
----
77
<dependency>
88
<groupId>org.neo4j.driver</groupId>
@@ -18,7 +18,7 @@ link:https://neo4j.com/docs/java-manual/current/install/#install-driver[More inf
1818
Connect to a database by creating a `Driver` object and providing a URL and an authentication token.
1919
Once you have a `Driver` instance, use the `.verifyConnectivity()` method to ensure that a working connection can be established.
2020

21-
[source, java, role=nocollapse]
21+
[source, java, role=nocollapse, copy=true]
2222
----
2323
package demo;
2424

documentation/connect-drivers-javascript.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Install the Neo4j JavaScript driver with `npm`:
44

5-
[source,bash]
5+
[source, bash, copy=true]
66
----
77
npm i neo4j-driver
88
----
@@ -15,7 +15,7 @@ link:https://neo4j.com/docs/javascript-manual/current/install/#install-driver[Mo
1515
Connect to a database by creating a `Driver` object and providing a URL and an authentication token.
1616
Once you have a `Driver` instance, use the `.getServerInfo()` method to ensure that a working connection can be established by retrieving the server information.
1717

18-
[source, javascript]
18+
[source, javascript, copy=true]
1919
----
2020
var neo4j = require('neo4j-driver');
2121
(async () => {

documentation/connect-drivers-python.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
== Install Driver
22

3-
[source, bash]
3+
[source, bash, copy=true]
44
----
55
pip install neo4j
66
----
@@ -12,7 +12,7 @@ link:https://neo4j.com/docs/python-manual/current/install/#install-driver[More i
1212
Connect to a database by creating a `Driver` object and providing a URL and an authentication token.
1313
Once you have a `Driver` instance, use the `.verify_connectivity()` method to ensure that a working connection can be established.
1414

15-
[source, python]
15+
[source, python, copy=true]
1616
----
1717
from neo4j import GraphDatabase
1818

0 commit comments

Comments
 (0)