Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Incubator escapee wiki:Browser notes
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===[[ELinks]]=== *Text only, but renders tables and frames. *Supports HTTP authentication. *Users can use their text editor of choice to edit textarea fields. *Problems with editing UTF-8; set "User-agent identification" (in setup->option manager->protocols->http) to something like "Lynx/elinks/%v (textmode; %s; %t-%b)" to get non-ascii characters as hex codes. * View is enhanced (especially of diffs) by using the following user.css and lua hook file (place in ${HOME}/.elinks and enable via option manager) ;user.css:<syntaxhighlight lang="css"> /* 1. place in ~/.elinks 2. set user css to be "user.css" (no path, relative to ~/.elinks) 3. use document colors: use 1 or 2 */ .diffchange { color: red; font-weight: bold; } .diff-deletedline { color: green; } .diff-addedline { color: cyan; } a.new { color: cyan; font-weight: bold; } </syntaxhighlight> ;hooks.lua:<syntaxhighlight lang="lua"> --[[ lua preformatting function 1. lua has to be installed before compiling elinks; if this is the case, it is used by default 2. place this file in ~/.elinks this file does: show <del> and <ins> element, make <s> more evident preformatting for wikipedia pages: since elinks ignores the class attribute of <td> tags, we move it into the inner <div> element ]] testing=false function pre_format_html_hook (url, html) -- formatting for <s> <del> <ins> html = string.gsub(html, '<[sS]>', '<s>[S:') html = string.gsub(html, '</[sS]>', ':S]</s>') html = string.gsub(html, '<[dD][eE][lL]>', '<s>[DEL:') html = string.gsub(html, '</[dD][eE][lL]>', ':DEL]</s>') html = string.gsub(html, '<[iI][nN][sS]>', '<s>[INS:') html = string.gsub(html, '</[iI][nN][sS]>', ':INS]</s>') -- diff-addedline and diff-deletedline classes if string.find(url, "diff=", 1, 1) or testing then html = string.gsub(html, '<td class="diff[-]addedline"><div>', '<td><div class="diff-addedline">') html = string.gsub(html, '<td class="diff[-]deletedline"><div>', '<td><div class="diff-deletedline">') end return html end </syntaxhighlight>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)