pretty code block?

o0ragman0oo0ragman0o Member, Moderator Posts: 1,291 mod
What class do I use to format pretty code blocks on this forum?

Comments

  • o0ragman0oo0ragman0o Member, Moderator Posts: 1,291 mod
    Ah, the wonders of...

    <pre></pre>!

  • StephanTualStephanTual London, EnglandMember, Moderator Posts: 1,282 mod
    edited December 2014
    There's an easier way
    def init():
      self.storage[msg.sender] = 10000
    def code():
      to = msg.data[0]
      from = msg.sender
      value = msg.data[1]
      if self.storage[from] >= value:
        self.storage[from] = self.storage[from] - value
        self.storage[to] = self.storage[to] + value
      
    That's <pre class="CodeBlock"><code>CODE HERE</code></pre>

    Or for inline formatting, you can do <code>CODE INLINE</code>

    Or simply select the formatting option from the paragraph formatting dropdown in the editor's toolbar :)
Sign In or Register to comment.