forked from scalacenter/scastie
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f6ad2c2
commit 4ac6bf0
Showing
17 changed files
with
134 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package api | ||
|
||
package object runtime { | ||
implicit class HtmlHelper(val sc: StringContext) extends AnyVal { | ||
def html(args: Any*) = Html(sc.s(args: _*)) | ||
def htmlRaw(args: Any*) = Html(sc.raw(args: _*)) | ||
} | ||
|
||
val help = { | ||
|
||
val Dot = "<kbd> . </kbd>" | ||
val Space = s"""<kbd>${" " * 40}</kbd>""" | ||
val Ctrl = "<kbd class='pc'>Ctrl </kbd>" | ||
val Cmd = "<kbd class='mac'> ⌘ </kbd>" | ||
val Enter = "<kbd> Enter </kbd>" | ||
val F2 = "<kbd> F2 </kbd>" | ||
val F7 = "<kbd> F7 </kbd>" | ||
val Esc = "<kbd> Esc </kbd>" | ||
val github = "https://github.com/scalacenter/scastie" | ||
val sublime = "http://sublime-text-unofficial-documentation.readthedocs.org/en/latest/reference/keyboard_shortcuts_osx.html" | ||
|
||
html"""|<h1>Welcome to Scastie!</h1> | ||
|Scastie is an interractive playground. | ||
|Evaluate expressions with $Ctrl $Cmd + $Enter. | ||
|Clear the output with $Esc. | ||
|<pre> | ||
|clear $Esc | ||
|run $Ctrl $Cmd + $Enter | ||
|toggle theme $F2 | ||
|<a target="_blank" href="$sublime">Sublime Text Keyboard Shortcuts</a> | ||
|</pre> | ||
|The source code is available at <a target="_blank" href="$github">scalacenter/scastie</a>, | ||
|published under the Apache2 license | ||
|""".stripMargin.fold | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
class Playground { | ||
val a = 1 + 1 | ||
val a = 1 + 1 | ||
|
||
1 + | ||
a | ||
} | ||
1 + | ||
a |
7 changes: 0 additions & 7 deletions
7
instrumentation/src/test/resources/single-line/instrumented.scala
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.