ScastieModifier

mdoc.modifiers.ScastieModifier
class ScastieModifier(theme: String, debugClassSuffix: Option[String]) extends StringModifier

Transforms Scala code blocks into Scastie snippets

==Usage==

===Inline code===

```
scala mdoc:scastie
println("Hello, Scastie!")
```

====Note==== This will be slower to run than embedding a snippet, since it's not cached

===Anonymous snippet===

```
scala mdoc:scastie:seL6YZuTSu65HiC1rLNwmQ

```

====Note==== The empty line in the block is relevant (md parser chokes otherwise)

===User's snippet===

```
scala mdoc:scastie:MasseGuillaume/33D4P3ysQCq2em2MRiv5sQ

```

====Note==== The empty line in the block is relevant (md parser chokes otherwise)

Attributes

Graph
Supertypes
trait StringModifier
class Object
trait Matchable
class Any

Members list

Value members

Constructors

def this()

Concrete methods

def inlineScastieSnippet(code: String): String
override def process(info: String, code: Input, reporter: Reporter): String

Attributes

Definition Classes
StringModifier
def scastieSnippet(snippetId: String): String

Inherited methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
StringModifier -> Any
Inherited from:
StringModifier

Concrete fields

override val name: String