Skip to content

Commit b9d19ea

Browse files
authored
Add language identifiers to markdown code snippets (ensdomains#49)
1 parent cbfdba1 commit b9d19ea

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

ensips/10.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Let:
4343

4444
ENSIP-10-compliant ENS resolvers MAY implement the following function interface:
4545

46-
```
46+
```solidity
4747
interface ExtendedResolver {
4848
function resolve(bytes calldata name, bytes calldata data) external view returns(bytes);
4949
}
@@ -76,7 +76,7 @@ Also note that when wildcard resolution is in use (eg, `name != currentname`), c
7676

7777
### Pseudocode
7878

79-
```
79+
```javascript
8080
function getResolver(name) {
8181
for(let currentname = name; currentname !== ''; currentname = parent(currentname)) {
8282
const node = namehash(currentname);

ensips/3.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ When called by account `x`, instructs the ENS registry to transfer ownership of
3939

4040
Allowing the caller to specify an owner other than themselves for the relevant node facilitates contracts that need accurate reverse ENS entries delegating this to their creators with a minimum of code inside their constructor:
4141

42-
```
42+
```solidity
4343
reverseRegistrar.claim(msg.sender)
4444
```
4545

@@ -55,7 +55,7 @@ When called by account `x`, sets the resolver for the name `hex(x) + '.addr.reve
5555

5656
A new resolver interface is defined, consisting of the following method:
5757

58-
```
58+
```solidity
5959
function name(bytes32 node) constant returns (string);
6060
```
6161

@@ -69,7 +69,7 @@ Future ENSIPs may specify more record types appropriate to reverse ENS records.
6969

7070
This registrar, written in Solidity, implements the specifications outlined above.
7171

72-
```
72+
```solidity
7373
pragma solidity ^0.4.10;
7474
7575
import "./AbstractENS.sol";

ensips/4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Encoding type 8 indicates that the ABI can be found elsewhere, at the specified
4949

5050
A new resolver interface is defined, consisting of the following method:
5151

52-
```
52+
```solidity
5353
function ABI(bytes32 node, uint256 contentType) constant returns (uint256, bytes);
5454
```
5555

0 commit comments

Comments
 (0)