Skip to content

Add copy to clipboard icon to code blocks #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion documentation/connect-drivers-dotnet.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ link:https://www.nuget.org/packages/Neo4j.Driver/.
== Connect to the database


[source, csharp, role=nocollapse]
[source, csharp, role=nocollapse, copy=true]
----
using Neo4j.Driver;

Expand Down
4 changes: 2 additions & 2 deletions documentation/connect-drivers-go.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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]:

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

[source, go, role=nocollapse]
[source, go, role=nocollapse, copy=true]
----
package main

Expand Down
4 changes: 2 additions & 2 deletions documentation/connect-drivers-java.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

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

[source, java, role=nocollapse]
[source, java, role=nocollapse, copy=true]
----
package demo;

Expand Down
4 changes: 2 additions & 2 deletions documentation/connect-drivers-javascript.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Install the Neo4j JavaScript driver with `npm`:

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

[source, javascript]
[source, javascript, copy=true]
----
var neo4j = require('neo4j-driver');
(async () => {
Expand Down
4 changes: 2 additions & 2 deletions documentation/connect-drivers-python.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
== Install Driver

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

[source, python]
[source, python, copy=true]
----
from neo4j import GraphDatabase

Expand Down