Skip to content

Commit 84c0dd2

Browse files
committed
Venvs syntax highlight
1 parent 9246ee9 commit 84c0dd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2887,8 +2887,8 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment
28872887
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">__init__</span><span class="hljs-params">(self, &lt;ctype/type&gt; &lt;arg_name&gt;)</span>:</span>
28882888
self.&lt;attr_name&gt; = &lt;arg_name&gt;
28892889
</code></pre>
2890-
<div><h3 id="virtualenvironments">Virtual Environments</h3><p><strong>System for installing libraries directly into project's directory.</strong></p><pre><code class="bash language-bash hljs">$ python3 -m venv NAME <span class="hljs-comment"># Creates virtual environment in current directory.</span>
2891-
$ <span class="hljs-built_in">source</span> NAME/bin/activate <span class="hljs-comment"># Activates env. On Windows run `NAME\Scripts\activate`.</span>
2890+
<div><h3 id="virtualenvironments">Virtual Environments</h3><p><strong>System for installing libraries directly into project's directory.</strong></p><pre><code class="python hljs">$ python3 -m venv NAME <span class="hljs-comment"># Creates virtual environment in current directory.</span>
2891+
$ source NAME/bin/activate <span class="hljs-comment"># Activates env. On Windows run `NAME\Scripts\activate`.</span>
28922892
$ pip3 install LIBRARY <span class="hljs-comment"># Installs the library into active environment.</span>
28932893
$ python3 FILE <span class="hljs-comment"># Runs the script in active environment. Also `./FILE`.</span>
28942894
$ deactivate <span class="hljs-comment"># Deactivates the active virtual environment.</span>

0 commit comments

Comments
 (0)