在 HTML 中生成自定义数量的 lorem ipsum 单词

Generate custom number of lorem ipsum words in HTML

使用 lorem + TAB 我可以生成一些随机词。

<body>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmodtempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodoconsequat. Duis aute irure dolor in reprehenderit in voluptate velit essecillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat nonproident, sunt in culpa qui officia deserunt mollit anim id est laborum.</body>

现在我想生成更多的单词,比如 100 个 lorem 文本句子。有什么办法可以在 Sublime Text 3 中实现吗?

例如输入lorem100

Lorem 后面的数字表示 Lorem 字符的数量

对于 sublime text 3 - refer to this github link for detailed steps

LoremText 3 is a plugin for sublime text 3 that creates random/fixed lorem ipsum text.

我建议访问 git 中心页面,但如果您对它的简要概述感兴趣,这里是 -

  1. 下载扩展(git方式)

    git clone https://github.com/ccpalettes/sublime-lorem-text.git
    git checkout sublime-text-3-beta
    
  2. 然后通过Preferences -> Browse Packages...和select打开“Packages”目录下载的包(for linux)

  3. 用法

There are a few ways to use the LoremText plugin.

Just press the shortcut key (alt+l on all platforms) to insert some lorem ipsum text. Type lorem({word_count}, {paragraph_count}) in your file, make sure that the input curosr is within the region of the lorem{?, ?} expression, then press the shortcut key (alt+l). Parameter "word_count" represents how many paragraphs to insert and parameter "paragraph_count" represents how many words that each paragraph contains. For example, lorem(100, 3) means that it will create three paragraphs of lorem ipsum text and each paragraph contains one hundred words. Both the two parameters are optional, if you leave them empty, the plugin will use default values that are configured in the settings file. Select menu entry Edit -> Lorem Text..., active the sub-menu commands. Go to Command Palette, find "Lorem Text" command.