Skip to content

Commit a2aa823

Browse files
committed
Formatting fixes to the getting started guide
1 parent 76ae7e2 commit a2aa823

4 files changed

+16
-12
lines changed

documentation/getting-started-intellij-track/building-a-scala-project-with-intellij-and-sbt.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ but here's a glance at what everything is for:
4444
- test (unit tests)
4545
- target (generated files)
4646
- build.sbt (build definition file for sbt)
47-
48-
4947
```
5048

5149

@@ -57,6 +55,7 @@ but here's a glance at what everything is for:
5755
* Right-click the package `example` and select **New** => **Scala class**.
5856
* Name the class `Main` and change the **Kind** to `object`.
5957
* Change the code in the class to the following:
58+
6059
```
6160
object Main extends App {
6261
val ages = Seq(42, 75, 29, 64)

documentation/getting-started-intellij-track/getting-started-with-scala-in-intellij.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ take a few minutes but subsequent projects can use the same SDK.
4141

4242
* Name the class `Hello` and change the **Kind** to `object`.
4343
* Change the code in the class to the following:
44-
```tut
44+
45+
```
4546
object Hello extends App {
4647
println("Hello, World!")
4748
}
@@ -57,7 +58,8 @@ A good way to try out code samples is with Scala Worksheets
5758
1. In the project pane on the left, right click
5859
`src` and select **New** => **Scala Worksheet**.
5960
* Enter the following code into the worksheet:
60-
```tut
61+
62+
```
6163
def square(x: Int) = x * x
6264
6365
square(2)
@@ -73,4 +75,4 @@ an important build tool called sbt which can be used for simple projects
7375
and production apps.
7476

7577

76-
Up next: [Building a Scala project with IntelliJ and sbt](building-a-scala-project-with-intellij-and-sbt.html)
78+
Up next: [Building a Scala project with IntelliJ and sbt]({{ site.baseurl }}/documentation/getting-started-intellij-track/building-a-scala-project-with-intellij-and-sbt.html)

documentation/getting-started-intellij-track/testing-scala-in-intellij-with-scalatest.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ We assume you know [how to build a project in IntelliJ]({{ site.baseurl }}docume
1414
## Setup
1515
1. Create an sbt project in IntelliJ.
1616
* Add the ScalaTest dependency to your build.sbt file:
17+
1718
```
1819
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test"
1920
```
@@ -23,7 +24,8 @@ libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test"
2324
* Right-click on `scala` and select **New** => **Scala class**.
2425
* Call it `CubeCalculator`, change the **Kind** to `object`, and click **OK**.
2526
* Replace the code with the following:
26-
```tut
27+
28+
```
2729
object CubeCalculator extends App {
2830
def cube(x: Int) = {
2931
x * x * x

documentation/getting-started-sbt-track/getting-started-with-scala-and-sbt-in-the-command-line.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@ runs, and tests your projects among other related tasks.
1212
We assume you know how to use a terminal.
1313

1414
## Installation
15+
1516
1. Make sure you have the Java 8 JDK (also known as 1.8)
1617
* Run `javac -version` in the command line and make sure you see
1718
`javac 1.8.___`
1819
* If you don't have version 1.8 or higher, [install the JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
19-
* Install sbt
20-
* [Mac](http://www.scala-sbt.org/0.13/docs/Installing-sbt-on-Mac.html)
21-
* [Windows](http://www.scala-sbt.org/0.13/docs/Installing-sbt-on-Windows.html)
22-
* [Linux](http://www.scala-sbt.org/0.13/docs/Installing-sbt-on-Linux.html)
20+
21+
2. Install sbt
22+
* [Mac](http://www.scala-sbt.org/0.13/docs/Installing-sbt-on-Mac.html)
23+
* [Windows](http://www.scala-sbt.org/0.13/docs/Installing-sbt-on-Windows.html)
24+
* [Linux](http://www.scala-sbt.org/0.13/docs/Installing-sbt-on-Linux.html)
2325

2426
## Create the project
2527
1. `cd` to an empty folder.
@@ -31,7 +33,6 @@ create a project called "hello-world".
3133
* Let's take a look at what just got generated
3234

3335
```
34-
3536
- hello-world
3637
- project (sbt uses this to install manage plugins and dependencies)
3738
- build.properties
@@ -68,9 +69,9 @@ Changing gears a bit, let's look at how to use published libraries to add
6869
extra functionality to our apps.
6970

7071
1. Open up `build.sbt` and add the following line:
72+
7173
```
7274
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.5"
73-
7475
```
7576

7677
Here, `libraryDependencies` is a set of dependencies, and by using `+=`,

0 commit comments

Comments
 (0)