question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

chore: Replace single line inline code blocks with multi-line code blocks

See original GitHub issue

To make single line code code blocks stand out more, we want to replace all such inline code blocks with multi-line code blocks in the Description and Instructions sections of a challenge. There were 4 files that also had extra characters at the end, that have already been fixed (see PR #41498), so If you search all the files located in curriculum/challenges/english with the following regex, you will find all the instances remaining to be fixed.

NOTE: Do not include the Python challenges. The single line code blocks are in the Answers section which we do not want to change at this point.

/^`[^`]+?`$/gi

Each replacement should make sure to reference the applicable language of the code. See the following examples:

HTML Code

Before:

`<button accesskey="b">Important Button</button>`

After:

```html
<button accesskey="b">Important Button</button>
```

CSS Code

Before:

`animation-iteration-count: 3;`

After:

```css
animation-iteration-count: 3;
```

JavaScript Code

Before:

`myVar = myVar * 5;`

After:

```js
myVar = myVar * 5;
```

JSX Code

Before:

`<div style={{color: "yellow", fontSize: 16}}>Mellow Yellow</div>`

After:

```jsx
<div style={{color: "yellow", fontSize: 16}}>Mellow Yellow</div>
```

Tasks:

  • Replace any single inline code blocks with characters at end with multi-line code blocks (see PR #41498)

  • Replace all single inline code blocks with multi-line code blocks by creating a separate PRs for each certification affected.

    • Responsive Web Design - 46 code blocks in 36 challenges (assigned to @Sembauke)
    • JavaScript Algorithms and Data Structures - 35 code blocks in 25 challenges (assigned to @ieahleen)
    • Front End Libraries - 28 code blocks in 25 challenges(assigned to @LaurentLabine)
    • Data Visualization - 9 code blocks in 9 challenges (assigned to ???)
    • Coding Interview Prep - 25 code blocks in 9 files (assigned to ???)

    To get this task accomplished quickly, we are fine with multiple contributors taking on this issue. Please let us know which section(s) you plan to create PRs for, so others will know not to work on those sections. We are limiting this issue to contributors who have already contributed in the past.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

5reactions
ieahleencommented, Mar 18, 2021

I can help with this, I can do the JavaScript cert

2reactions
Sembaukecommented, Mar 18, 2021

I can help with the Responsive Web Design one

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multiline Search & Replace - Code::Blocks Forums
The Multi-line Search and replace algorithm has been finished and tested successfully, in an unsaved file, with default EOL mode set to CRLF....
Read more >
Multi-line code blocks render as a single line code block #36
This happens because I strip blank lines to make the output prettier. However, this ends up removing lines where they matter, like in...
Read more >
Markdown multiline code blocks in tables when rows have to ...
Can't make it work guys, GitHub shows this code here on one line in a table cell, <br/> is hidden: <pre><code>{<br/>  showToday: false ...
Read more >
LF Pro 7.8 - Lahey
Expandable code can make the chore of navigating through sections of code easier by allowing you to collapse a region of code into...
Read more >
How can I use sed or ex to replace a block (multi-line code ...
I suggest using the change command (which is essentially a delete coupled with an append, though the append is only applied for the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found