User talk:Derf: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
(→‎Wiki manteinance feedback: Syntaxhighlight review ?)
Line 3: Line 3:
=== Syntaxhighlight ===
=== Syntaxhighlight ===
After some experiments i can confirm the syntaxhighlight extension is working, the reason why it was confusing me latelly is because time ago (when everything was working fine) we was using a different color selection for the xml language highlights<br>
After some experiments i can confirm the syntaxhighlight extension is working, the reason why it was confusing me latelly is because time ago (when everything was working fine) we was using a different color selection for the xml language highlights<br>
Long story short... we was trying to using the same default xml colors than [https://notepad-plus-plus.org/ notepad++] that looks a bit like this, but it was not exactly the same [https://1.bp.blogspot.com/-QDlyYiEmlVE/VE6DEVWKUGI/AAAAAAAAHXg/TYziBuQQ5Kg/s1600/columnMode.gif color sample] and are a lot more friendly<br>
Long story short... we was trying to use the same default xml colors than [https://notepad-plus-plus.org/ notepad++] that looks a bit like this [https://1.bp.blogspot.com/-QDlyYiEmlVE/VE6DEVWKUGI/AAAAAAAAHXg/TYziBuQQ5Kg/s1600/columnMode.gif color sample] and are a lot more friendly, but it was not exactly the same colors (was simplifyed for wiki)<br>
As far i remember it was euss who did after a talk we had, but he never told me what he did, and now i think he customized some colors, today i been reading a bit the documentation and it seems there is a file named Genshi.css where the colors can be configured, i dont have access to that file but im guessing the changes was made in it, but im wondering it was lost years ago in one of the defyboy attempts to fix syntaxhighlight, if you have some old backup please take a look if there is some file with that color settings<br>
As far i remember it was euss who did after a talk we had, but he never told me what he did, and now i think he customized some colors, today i been reading a bit the documentation and it seems there is a file named Genshi.css where the colors can be configured, i dont have access to that file but im guessing the changes was made in it, but im wondering it was lost years ago in one of the defyboy attempts to fix syntaxhighlight, if you have some old backup please take a look if there is some file with that color settings<br>
For curiosity sake... at some point i was doing a tricky combination of templates "broken" in pieces where i was using real systaxhighlight tags with fake ones (forcing the color highlighting manually with <nowiki><span style></nowiki>) to match with the custom colors from the real syntaxhighllight. IE: in this [[https://www.psdevwiki.com/ps3/RCOXML_Objects#.280x802.29_Plane|section]] (click in edit to see how is composed and which xml code is real or fake highlight)<br>
For curiosity sake... at some point i was doing a tricky combination of templates "broken" in pieces where i was using real systaxhighlight tags with fake ones (forcing the color highlighting manually with <nowiki><span style></nowiki>) to match with the custom colors from the real syntaxhighllight. IE: in this [[RCOXML_Objects#.280x802.29_Plane|section]] (click in edit to see how is composed and which xml code is real or fake highlight) that is loading chunks of the table from this [[Template:RCO_TOC_Objects_standard_attributes|template]]<br>
*Basically... i was doing this color selection (elements in blue color:#000077, and the value of elements in red color:#ff3333):
*Basically... i was doing this color selection (elements in blue color:#000077, and the value of elements in red color:#ff3333):
**<code><nowiki><span style="font-family:Courier New;">'''<Entry''' <span style="color:#000077;">positionX</span><span style="color:#ff3333;">="100"</span> '''/>'''</span></nowiki></code>
**<code><nowiki><span style="font-family:Courier New;">'''<Entry''' <span style="color:#000077;">positionX</span><span style="color:#ff3333;">="100"</span> '''/>'''</span></nowiki></code>
Line 11: Line 11:
**<code><span style="font-family:Courier New;">'''<Entry''' <span style="color:#000077;">positionX</span><span style="color:#ff3333;">="100"</span> '''/>'''</span></code>
**<code><span style="font-family:Courier New;">'''<Entry''' <span style="color:#000077;">positionX</span><span style="color:#ff3333;">="100"</span> '''/>'''</span></code>


Right now i dont remember how i "chery picked" that colors, all i know if i dedicated some time to match with what the sysntaxhighlight was doing (and all the other details about bold and font type was important), but as you can see the current color selection looks very different:
Right now i dont remember how i "chery picked" that colors, all i remember is i dedicated some time to match with what the sysntaxhighlight was doing (and all the other details about bold and font family was important because syntaxhighlight is doing it too), but as you can see the current color selection looks very different:
*<syntaxhighlight lang=xml inline><Entry positionX="100" /></syntaxhighlight> <--- Current
*<syntaxhighlight lang=xml inline><Entry positionX="100" /></syntaxhighlight> <--- Current
*<code><span style="font-family:Courier New;">'''<Entry''' <span style="color:#000077;">positionX</span><span style="color:#ff3333;">="100"</span> '''/>'''</span></code> <--- Colored manually by me
*<code><span style="font-family:Courier New;">'''<Entry''' <span style="color:#000077;">positionX</span><span style="color:#ff3333;">="100"</span> '''/>'''</span></code> <--- Colored manually by me to match with the "old style"
--[[User:Sandungas|Sandungas]] ([[User talk:Sandungas|talk]]) 11:41, 22 April 2023 (CEST)
--[[User:Sandungas|Sandungas]] ([[User talk:Sandungas|talk]]) 11:41, 22 April 2023 (CEST)

Revision as of 11:50, 22 April 2023

Wiki manteinance feedback

Syntaxhighlight

After some experiments i can confirm the syntaxhighlight extension is working, the reason why it was confusing me latelly is because time ago (when everything was working fine) we was using a different color selection for the xml language highlights
Long story short... we was trying to use the same default xml colors than notepad++ that looks a bit like this color sample and are a lot more friendly, but it was not exactly the same colors (was simplifyed for wiki)
As far i remember it was euss who did after a talk we had, but he never told me what he did, and now i think he customized some colors, today i been reading a bit the documentation and it seems there is a file named Genshi.css where the colors can be configured, i dont have access to that file but im guessing the changes was made in it, but im wondering it was lost years ago in one of the defyboy attempts to fix syntaxhighlight, if you have some old backup please take a look if there is some file with that color settings
For curiosity sake... at some point i was doing a tricky combination of templates "broken" in pieces where i was using real systaxhighlight tags with fake ones (forcing the color highlighting manually with <span style>) to match with the custom colors from the real syntaxhighllight. IE: in this section (click in edit to see how is composed and which xml code is real or fake highlight) that is loading chunks of the table from this template

  • Basically... i was doing this color selection (elements in blue color:#000077, and the value of elements in red color:#ff3333):
    • <span style="font-family:Courier New;">'''<Entry''' <span style="color:#000077;">positionX</span><span style="color:#ff3333;">="100"</span> '''/>'''</span>
  • To display it like this:
    • <Entry positionX="100" />

Right now i dont remember how i "chery picked" that colors, all i remember is i dedicated some time to match with what the sysntaxhighlight was doing (and all the other details about bold and font family was important because syntaxhighlight is doing it too), but as you can see the current color selection looks very different:

  • <Entry positionX="100" /> <--- Current
  • <Entry positionX="100" /> <--- Colored manually by me to match with the "old style"

--Sandungas (talk) 11:41, 22 April 2023 (CEST)