一些文本以灰色突出显示的文档

Documentation with some text highlighted in gray

在 Julia 中记录函数的选项很简单,很受欢迎。使用 Jupyter notebook 时是否可以在文档中突出显示某些关键字?

例如

"""
function ph(phoenix_one, phoenix-two)

      phoenix_one is an array of tuples containing information on height and weight, and phoenix-two contains position data.
"""
function ph(phoenix_one, phoenix-two)
    return phoenix_one + phoenix-two
end

?ph 被调用时

期望是:

phoenix_one是包含身高和体重信息的元组数组,phoenix-two包含位置数据。

而不是

phoenix_one是包含身高体重信息的元组数组,phoenix-two包含位置数据。

这是突出显示的一些关键字。

方法如下(使用反引号 + 注意文档字符串的布局)

"""
    ph(phoenix_one, phoenix_two)

`phoenix_one` is an array of tuples containing information on height and weight,
and phoenix-two contains position data.
"""
function ph(phoenix_one, phoenix_two)
    return phoenix_one + phoenix_two
end