aboutsummaryrefslogtreecommitdiffstats
path: root/docs/layout-of-source-files.rst
diff options
context:
space:
mode:
authorholgerd77 <Holger.Drewes@googlemail.com>2016-02-18 18:00:33 +0800
committerholgerd77 <Holger.Drewes@googlemail.com>2016-02-18 18:00:33 +0800
commit0e44481b0fa2a40c756602bd779b871ad6fcd347 (patch)
tree66be3706e2505165bb051f926c43780917cd9bf8 /docs/layout-of-source-files.rst
parent9904dc386d30b6b8a6facb43d403a03269979237 (diff)
downloaddexon-solidity-0e44481b0fa2a40c756602bd779b871ad6fcd347.tar.gz
dexon-solidity-0e44481b0fa2a40c756602bd779b871ad6fcd347.tar.zst
dexon-solidity-0e44481b0fa2a40c756602bd779b871ad6fcd347.zip
Code blocks for compiler use section
Diffstat (limited to 'docs/layout-of-source-files.rst')
-rw-r--r--docs/layout-of-source-files.rst11
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/layout-of-source-files.rst b/docs/layout-of-source-files.rst
index 3fb64635..07934560 100644
--- a/docs/layout-of-source-files.rst
+++ b/docs/layout-of-source-files.rst
@@ -34,8 +34,7 @@ current global scope (different than in ES6 but backwards-compatible for Solidit
import {symbol1 as alias, symbol2} from "filename";
-...creates new global symbols `alias` and `symbol2` which reference `symbol1` and `symbol2`
-from `"filename"`, respectively.
+...creates new global symbols `alias` and `symbol2` which reference `symbol1` and `symbol2` from `"filename"`, respectively.
Another syntax is not part of ES6, but probably convenient:
@@ -83,11 +82,15 @@ So as an example, if you clone
`github.com/ethereum/dapp-bin/` locally to `/usr/local/dapp-bin`, you can use
the following in your source file:
-`import "github.com/ethereum/dapp-bin/library/iterable_mapping.sol" as it_mapping;`
+::
+
+ import "github.com/ethereum/dapp-bin/library/iterable_mapping.sol" as it_mapping;
and then run the compiler as
-`solc github.com/ethereum/dapp-bin/=/usr/local/dapp-bin/ source.sol`
+.. code-block:: shell
+
+ solc github.com/ethereum/dapp-bin/=/usr/local/dapp-bin/ source.sol
Note that solc only allows you to include files from certain directories:
They have to be in the directory (or subdirectory) of one of the explicitly