Changes

Jump to navigation Jump to search
297 bytes added ,  19:33, 5 October 2023
adapt display to the wiki
\enabledirectives[hyphenators.urls.packslashes] % this avoids consecutive slashes each in a different line
\sethyphenatedurlbefore{/} % but then they seem to be fixed to what comes before and after them
\startTEXpage[width=7em, foregroundstyle=\ttdttb] % just to display the output better
\hsize\zeropoint % to see where lines may be broken
\hyphenatedurl{http://bits.blogs.nytimes.com/2010/03/05/a-former-book-designer-says-good-riddance-to-print/?hpw}
\stopTEXpage
</context>
 
The previous sample shows all possible line breaks, since horizontal size (text width) has been set to zero ({{cmd|hsize}}{{cmd|zeropoint}}).
=== Hyphenation Rules ===
Create a macro for external links in a colour that is distinct from other document links.
<precontext source="yes">
% Enable document colours
\setupcolors[state=start,]
\def\Google{G\color[red]{o}\color[orange]{o}g\color[green]{l}\color[red]{e}}
%\starttext % makes no sense in the wiki\startTEXpage[offset=1dk, foregroundstyle=\tfb]
\completecontent
% \startchapter[title=chapter]
Search \index{source code}{source code} using \href{\Google{} Website}{http://google.com}! Read about
\index{syntax}{syntax}.
% \stopchapter \blank
\placeindex
\stopTEXpage%\stoptext% makes no sense in the wiki </precontext>
[[Category:Basics]]
[[Category:Interaction]]
139

edits

Navigation menu