Jump to content

User talk:Remember the dot/Syntax highlighter: Difference between revisions

From mediawiki.org
Latest comment: 10 years ago by DVdm in topic HTML br-tag
Content deleted Content added
DVdm (talk | contribs)
→‎HTML br-tag: new section
Line 46: Line 46:


::I've been copy/pasting to my personal wiki. As per the instructions at [[User:Remember_the_dot/Syntax_highlighter#MediaWiki_1.22_or_later]]. [[User:Rob Kam|Rob Kam]] ([[User talk:Rob Kam|talk]]) 14:27, 29 October 2013 (UTC)
::I've been copy/pasting to my personal wiki. As per the instructions at [[User:Remember_the_dot/Syntax_highlighter#MediaWiki_1.22_or_later]]. [[User:Rob Kam|Rob Kam]] ([[User talk:Rob Kam|talk]]) 14:27, 29 October 2013 (UTC)

== HTML br-tag ==
in [[User:Remember_the_dot/Syntax_highlighter#Parsing]] the text says: "''... and use <code>&lt;br/></code> instead of <code>&lt;br></code>.''" According to http://www.w3schools.com/tags/tag_br.asp this seems not correct:
::''The <nowiki><br></nowiki> tag inserts a single line break.''
::''The <nowiki><br></nowiki> tag is an empty tag which means that it has no end tag.''
::''In HTML, the <nowiki><br></nowiki> tag has no end tag.''
::''In XHTML, the <nowiki><br></nowiki> tag must be properly closed, like this: <nowiki><br /></nowiki>. ''

Shouldn't the doc reflect this by saying "''... but, as an exception, do ''not'' use <code>&lt;br/></code> instead of <code>&lt;br></code>.''"? - [[User:DVdm|DVdm]] ([[User talk:DVdm|talk]]) 22:13, 26 April 2014 (UTC)

Revision as of 22:13, 26 April 2014

How to only highlight references

What exactly do I put where to end up only highlighting references? --Timeshifter (talk) 06:29, 8 December 2012 (UTC)Reply

Known issue about default page zoom

Is the "only works on default page zoom" issue something that's being worked on? — OwenBlacker | Discussion 15:36, 30 December 2012 (UTC)Reply

What should i expect to fail with zoom?

So far, it seems it is working just fine with zoom, even if i change the zoom after loading the edit page. What is known to go wrong when the page is not at the default zoom? --TiagoTiago (talk) 16:20, 23 May 2013 (UTC)Reply

When I change the page zoom on my computer (Firefox 21.0 on Lubuntu 13.04) while editing a page, the highlighting gets at least a little and sometimes a lot out of alignment with the text. If I zoom in before opening the edit page, it seems to work okay. Pretty much the same thing happens on Chrome. I think this is due to bugs in Firefox and Chrome, but I doubt they're going to get fixed anytime soon. If combining the syntax highlighter with page zoom works for you, more power to you, but I wanted to make clear that this combination is unsupported. —Remember the dot (talk) 05:29, 26 May 2013 (UTC)Reply

Text colour instead of background colour

Hi. I was wondering if it's possible to use your script to change the font colour rather then the background colour. The naive solution of changing background-color to color didn't work leading me to believe that this is due to how the textboxes are created. /Lokal Profil (talk) 14:23, 6 June 2013 (UTC)Reply

I tried several methods to make the letters colorful and determined that there is no decent way to do it; HTML, CSS, and JavaScript were simply not intended to have every feature you would have when developing a desktop application. To make the letters colorful instead of their backgrounds you would have to make the letters transparent, which would also make the caret transparent, which I found unacceptable. WebKit has a proprietary CSS property, -webkit-text-fill-color, that can change text color without changing the caret color, but I do not want to code to any particular browser. So, we're stuck with changing the background color instead. —Remember the dot (talk) 04:37, 21 June 2013 (UTC)Reply
Ah. No worries, at least this means I wasn't missing some obvious solution. Thanks for trying. /Lokal Profil (talk) 16:21, 23 June 2013 (UTC)Reply

TemplateScript

I noticed this is not compatible with the regex tool from meta:User:Pathoschild/Scripts/TemplateScript#Regex editor. The highlighting is moved to a position below he wiki code (and the wiki code overlaps with the regex tool). Helder 12:45, 27 June 2013 (UTC)

Improve speed?

I am using a slightly outdated desktop PC (Intel Pentium 4 CPU 3GHz, 1GB ram, on-board display card) to edit Wikipedia in Firefox. When the syntax highlighter is enabled, the scrolling of the article source window by mouse middle wheel is significantly slowed down. Is there anyway to further improve the speed of the gadget? Thx. -- Sameboat (talk) 03:30, 24 July 2013 (UTC)Reply

If I could, I would... —Remember the dot (talk) 00:20, 29 October 2013 (UTC)Reply

Brilliant

This brilliant feature should be default on Wikipedia. I did already ask for it long ago.--Wickey-nl (talk) 14:35, 18 September 2013 (UTC)Reply

wgPageContentModel is not defined

At some point it stopped working on my wiki (MW 1.21.2 with Vector). In Firefox console I get the message "Exception thrown by ext.gadget.DotsSyntaxHighlighter: wgPageContentModel is not defined". Is there a way to fix this please? Rob Kam (talk) 23:18, 27 September 2013 (UTC)Reply

Fixed as described at For webmaster if using MediaWiki 1.21 or earlier. Rob Kam (talk) 20:12, 16 October 2013 (UTC)Reply

Hotlinking to an always-up-to-date version

Is it possible to hotlink to the Syntax highlighter? In a similar way to how a hotlinked HotCat can be implemented. The advantage would be the other wiki would then always have the most recent version. Rob Kam (talk) 00:16, 20 October 2013 (UTC)Reply

I've added instructions on how to do this. I never intended for Wikimedia wikis to copy and paste the code, do you know of any which have done so? —Remember the dot (talk) 00:20, 29 October 2013 (UTC)Reply
I've been copy/pasting to my personal wiki. As per the instructions at User:Remember_the_dot/Syntax_highlighter#MediaWiki_1.22_or_later. Rob Kam (talk) 14:27, 29 October 2013 (UTC)Reply

HTML br-tag

in User:Remember_the_dot/Syntax_highlighter#Parsing the text says: "... and use <br/> instead of <br>." According to http://www.w3schools.com/tags/tag_br.asp this seems not correct:

The <br> tag inserts a single line break.
The <br> tag is an empty tag which means that it has no end tag.
In HTML, the <br> tag has no end tag.
In XHTML, the <br> tag must be properly closed, like this: <br />.

Shouldn't the doc reflect this by saying "... but, as an exception, do not use <br/> instead of <br>."? - DVdm (talk) 22:13, 26 April 2014 (UTC)Reply