Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Encyclopedia:Browser notes
(section)
Project page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
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>
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Encyclopedia:Browser notes
(section)
Add topic