...

Text file src/github.com/alecthomas/chroma/lexers/testdata/solidity.actual

Documentation: github.com/alecthomas/chroma/lexers/testdata

     1pragma solidity ^0.4.11;
     2
     3contract ReactExample {
     4    address private owner;
     5    string public you_awesome;
     6    
     7    function ReactExample() public {
     8        owner = msg.sender;
     9        you_awesome = "You're awesome";
    10    }
    11    
    12    function kill() public {
    13        require(msg.sender==owner);
    14        selfdestruct(owner);
    15    }
    16    
    17    function () public payable {
    18        revert ();
    19    }
    20}

View as plain text