Browse Source

Add some more information about ## as Julia source code comments.

pull/72/head
Fredrik Ekre 6 years ago
parent
commit
fb4059d28c
  1. 1
      docs/src/fileformat.md
  2. 3
      docs/src/pipeline.md

1
docs/src/fileformat.md

@ -22,6 +22,7 @@ Lets look at a simple example:
# In julia rational numbers can be constructed with the `//` operator. # In julia rational numbers can be constructed with the `//` operator.
# Lets define two rational numbers, `x` and `y`: # Lets define two rational numbers, `x` and `y`:
## Define variable x and y
x = 1//3 x = 1//3
y = 2//5 y = 2//5

3
docs/src/pipeline.md

@ -35,6 +35,7 @@ with each line categorized:
# In julia rational numbers can be constructed with the `//` operator. <- markdown # In julia rational numbers can be constructed with the `//` operator. <- markdown
# Lets define two rational numbers, `x` and `y`: <- markdown # Lets define two rational numbers, `x` and `y`: <- markdown
<- code <- code
## Define variable x and y <- code
x = 1 // 3 <- code x = 1 // 3 <- code
y = 2 // 5 <- code y = 2 // 5 <- code
<- code <- code
@ -52,6 +53,7 @@ chunks:
# In julia rational numbers can be constructed with the `//` operator. │ markdown # In julia rational numbers can be constructed with the `//` operator. │ markdown
# Lets define two rational numbers, `x` and `y`: ┘ # Lets define two rational numbers, `x` and `y`: ┘
## Define variable x and y │
x = 1 // 3 │ x = 1 // 3 │
y = 2 // 5 │ code y = 2 // 5 │ code
@ -74,6 +76,7 @@ Lets define two rational numbers, `x` and `y`:
``` ```
Chunk #2: Chunk #2:
```julia ```julia
# Define variable x and y
x = 1 // 3 x = 1 // 3
y = 2 // 5 y = 2 // 5
``` ```

Loading…
Cancel
Save