Sha256: e892e7eac7e78645780718cde7b7359593545ecbdbd004cecacbcddd043834e5

Contents?: true

Size: 1.15 KB

Versions: 7

Compression:

Stored size: 1.15 KB

Contents

// .basic
----
echo -n "Please enter your name: "
read name
echo "Hello, $name!"
----

// .basic_with_title
.Reading user input
----
echo -n "Please enter your name: "
read name
echo "Hello, $name!"
----

// .basic_nowrap
[options="nowrap"]
----
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
----

// .basic_with_id_and_role
[#code.example]
----
echo -n "Please enter your name: "
read name
echo "Hello, $name!"
----

// .source
[source]
----
5.times do
  print "Odelay!"
end
----

// .source_with_title
[source]
.Odelay!
----
5.times do
  print "Odelay!"
end
----

// .source_with_language
[source, ruby]
----
5.times do
  print "Odelay!"
end
----

// .source_nowrap
[source, java, options="nowrap"]
----
public class ApplicationConfigurationProvider extends HttpConfigurationProvider {

   public Configuration getConfiguration(ServletContext context) {
      return ConfigurationBuilder.begin()
               .addRule()
               .when(Direction.isInbound().and(Path.matches("/{path}")))
               .perform(Log.message(Level.INFO, "Client requested path: {path}"))
               .where("path").matches(".*");
   }
}
----

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
asciidoctor-doctest-2.0.0.beta.2 data/examples/asciidoc/block_listing.adoc
asciidoctor-doctest-2.0.0.beta.1 data/examples/asciidoc/block_listing.adoc
asciidoctor-doctest-1.5.2.0 data/examples/asciidoc/block_listing.adoc
asciidoctor-doctest-1.5.1.2 data/examples/asciidoc/block_listing.adoc
asciidoctor-doctest-1.5.1.1 data/examples/asciidoc/block_listing.adoc
asciidoctor-doctest-1.5.1 data/examples/asciidoc/block_listing.adoc
asciidoctor-doctest-1.5.0 data/examples/asciidoc/block_listing.adoc