Skip to content

Instantly share code, notes, and snippets.

@cupakromer
Created April 2, 2014 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cupakromer/9934026 to your computer and use it in GitHub Desktop.
Save cupakromer/9934026 to your computer and use it in GitHub Desktop.
RelishApp Syntax Formatting Test
Feature: Testing Code Blocks
In the feature description.
Only indent to specify code block:
No indent:
/a regex/
a_string = "foo"
a_string.to_sym
2 space indent:
/a regex/
a_string = "foo"
a_string.to_sym
4 space indent:
/a regex/
a_string = "foo"
a_string.to_sym
Triple backticks
No indent:
```
/a regex/
a_string = "foo"
a_string.to_sym
```
2 space indent:
```
/a regex/
a_string = "foo"
a_string.to_sym
```
4 space indent:
```
/a regex/
a_string = "foo"
a_string.to_sym
```
Triple backticks (with syntax)
No indent:
```ruby
/a regex/
a_string = "foo"
a_string.to_sym
```
2 space indent:
```ruby
/a regex/
a_string = "foo"
a_string.to_sym
```
4 space indent:
```ruby
/a regex/
a_string = "foo"
a_string.to_sym
```
Tripe quotes (with syntax):
No indent:
"""ruby
/a regex/
a_string = "foo"
a_string.to_sym
"""
2 space indent:
"""ruby
/a regex/
a_string = "foo"
a_string.to_sym
"""
4 space indent:
"""ruby
/a regex/
a_string = "foo"
a_string.to_sym
"""
Scenario: Code block in scenario
Given some ruby code:
"""ruby
/a regex/
a_string = "foo"
a_string.to_sym
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment