{"translation":"https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_fdp-primer/en/?format=json","source":["if has(\"autocmd\")\n    au BufNewFile,BufRead *.sgml,*.ent,*.xsl,*.xml call Set_SGML()\n    au BufNewFile,BufRead *.[1-9] call ShowSpecial()\nendif \" has(autocmd)\n\nfunction Set_Highlights()\n    \"match ExtraWhitespace /^\\s* \\s*\\|\\s\\+$/\n    highlight default link OverLength ErrorMsg\n    match OverLength /\\%71v.\\+/\n    return 0\nendfunction \" Set_Highlights()\n\nfunction ShowSpecial()\n    setlocal list listchars=tab:&gt;&gt;,trail:*,eol:$\n    hi def link nontext ErrorMsg\n    return 0\nendfunction \" ShowSpecial()\n\nfunction Set_SGML()\n    setlocal number\n    syn match sgmlSpecial \"&amp;[^;]*;\"\n    setlocal syntax=sgml\n    setlocal filetype=xml\n    setlocal shiftwidth=2\n    setlocal textwidth=70\n    setlocal tabstop=8\n    setlocal softtabstop=2\n    setlocal formatprg=\"fmt -p\"\n    setlocal autoindent\n    setlocal smartindent\n    \" Rewrap paragraphs\n    noremap P gqj\n    \" Replace spaces with tabs\n    noremap T :s/        /\\t/&lt;CR&gt;\n    call ShowSpecial()\n    call Set_Highlights()\n    return 0\nendfunction \" Set_SGML()"],"previous_source":"","target":["if has(\"autocmd\")\n    au BufNewFile,BufRead *.sgml,*.ent,*.xsl,*.xml call Set_SGML()\n    au BufNewFile,BufRead *.[1-9] call ShowSpecial()\nendif \" has(autocmd)\n\nfunction Set_Highlights()\n    \"match ExtraWhitespace /^\\s* \\s*\\|\\s\\+$/\n    highlight default link OverLength ErrorMsg\n    match OverLength /\\%71v.\\+/\n    return 0\nendfunction \" Set_Highlights()\n\nfunction ShowSpecial()\n    setlocal list listchars=tab:&gt;&gt;,trail:*,eol:$\n    hi def link nontext ErrorMsg\n    return 0\nendfunction \" ShowSpecial()\n\nfunction Set_SGML()\n    setlocal number\n    syn match sgmlSpecial \"&amp;[^;]*;\"\n    setlocal syntax=sgml\n    setlocal filetype=xml\n    setlocal shiftwidth=2\n    setlocal textwidth=70\n    setlocal tabstop=8\n    setlocal softtabstop=2\n    setlocal formatprg=\"fmt -p\"\n    setlocal autoindent\n    setlocal smartindent\n    \" Rewrap paragraphs\n    noremap P gqj\n    \" Replace spaces with tabs\n    noremap T :s/        /\\t/&lt;CR&gt;\n    call ShowSpecial()\n    call Set_Highlights()\n    return 0\nendfunction \" Set_SGML()"],"id_hash":2134929445440844287,"content_hash":2134929445440844287,"location":"book.translate.xml:9654","context":"","note":"(itstool) path: sect2/programlisting","flags":"no-wrap","labels":[],"state":100,"fuzzy":false,"translated":true,"approved":false,"position":1702,"has_suggestion":false,"has_comment":false,"has_failing_check":false,"num_words":100,"source_unit":"https://translate-dev.freebsd.org/api/units/157571/?format=json","priority":100,"id":157571,"web_url":"https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_fdp-primer/en/?checksum=9da0cb04f005f1ff","url":"https://translate-dev.freebsd.org/api/units/157571/?format=json","explanation":"","extra_flags":"","pending":false,"timestamp":"2020-04-18T18:15:07.291295Z"}