Issue 02 文档编辑问题汇总

2017-08-19  本文已影响0人  Gouwal

@(Python)[ch01]

Environment : MD+Maxiang+Evernote+MDPad2 / under Windows7


代码拷贝到Markdown编辑环境下的格式问题

1. 问题描述:

2. 尝试解决:

3. 解决方案总结:

st=>start: 从Atom拷贝到MarkdownPad2 
op1=>start: 拷贝代码从MarkdownPad2 到 maxing
e1=>end: 检查相关代码间距
e2=>end: 发布

MarkdwonPad2 => maxing

st->op1->e1->e2

code uploading process, maxing+markdownpad2

4. 最终展示效果


def get_weather_info():

    try:
        print('{} the weather is :{}'.format(city, weather[city]))
        history[city] = weather[city]
    except:
        print("sorry, the city you input is inexistent, please input again")
        get_help()



5. maxing自带代码块描述展示

@requires_authorization
def somefunc(param1='', param2=0):
    '''A docstring'''
    if param1 > param2: # interesting
        print 'Greater'
    return (param2 - param1 + 1) or None
class SomeClass:
    pass
>>> message = '''interpreter
... prompt'''


6. Markdown + maxiang + evernote 最终发布在简书的流程

maxing 代码:

st=>start: 在maxiang编辑
op1=>operation: maxiang直接同步到evernote
cond=>condition: 检查,没有错误
op2=>operation: 复制maxing代码到简书发布
e2=>end: 最终结束所有发布与保存!

st->op1->cond
cond(yes)->op2->e2
cond(no)->op1

流程图:

Markdown + maxiang + evernote

系统 : windows 7, compiler: windows Powershell, MarkdownPad2

上一篇 下一篇

猜你喜欢

热点阅读