Howto
Create folders if not exist.
In your hexo root.
1
mkdir -p source/downloads/code
Include your source code in your post
1
{% include_code base_socket_client lang:python base_socket_client.py %}
Result
1 | #!/usr/bin/env python3 |
Create folders if not exist.
In your hexo root.
1 | mkdir -p source/downloads/code |
Include your source code in your post
1 | {% include_code base_socket_client lang:python base_socket_client.py %} |
1 | #!/usr/bin/env python3 |