Wikipedia:Reference desk/Archives/Computing/2019 June 27

= June 27 =

== ) will cause the same problem.
 * One can consider indenting with tabulation-characters but generally all keyboards don't have a key for tabulation-character and searching-finding-copying and pasting tabulation-characters repeatedly, feels bad to me. Also, using an AHk approach to create a Windows keyboard-shortcut to add a tabulation-character is nice but not a solution for Linux users.

Explanation
The code itself is not one piece but splitted to five blocks Also, the space-indented part of the code (y and z tags) appear in a  tag that I never created; I don't want this   tag to be created.

My question
I want just one block, not 2 or more, just as in example source code (this is why I asked to see the source code of the example). What can be done to prevent MediaWiki from splitting my nested code to blocks?


 * Consider using a  tag instead of  . The latter works fine with inline text, like here in my answer, the former works with mutliple-lines blocks (and it can colour syntax). See this example, with  :


 * and this one, with  :


 * --CiaPan (talk) 08:05, 27 June 2019 (UTC)
 * As of MediaWiki 1.32.0 using source tag properly requires SyntaxHighlight extension which to be honest - I don't want to use.
 * later edit: Nope, I was wrong, it doesn't require SyntaxHighlight but according to user:TheDJ's answer below, it is deprecated anyway.
 * Maybe another approach? 182.232.21.241 (talk) 08:57, 27 June 2019 (UTC)
 * Maybe try ...? --CiaPan (talk) 09:09, 27 June 2019 (UTC)
 * I thought about that but I am afraid it will cause a broad problem in the long run if I use it exclusively and also change the CSS of the tag itself a bit. I need a tag suitable for code but totally "neutral". Thanks. 182.232.21.241 (talk) 09:59, 27 June 2019 (UTC)
 * Or maybe I'm wrong and  is netural enough, although because the site is of an RTL language and   should be LTRized for LTR code, I do indeed need to avoid using it... That's a tough one... 182.232.21.241 (talk) 12:08, 27 June 2019 (UTC)
 * Or maybe I'm wrong and  is netural enough, although because the site is of an RTL language and   should be LTRized for LTR code, I do indeed need to avoid using it... That's a tough one... 182.232.21.241 (talk) 12:08, 27 June 2019 (UTC)

Let's try this again: Result:      Hope this helps, —Th e DJ (talk • contribs) 09:17, 27 June 2019 (UTC)
 * Hello User:TheDJ, I thought about using  but I am afraid it will cause a broad problem in the long run if I use it for codes all over the site and also change the CSS of the tag itself a bit (like changing margin, padding, etc).
 * Therefore, I need a tag suitable for code but totally "neutral". Thanks. 182.232.21.241 (talk) 10:04, 27 June 2019 (UTC)
 * Neutral, as in you don't want any markup ? Eh.... use a div and apply your own classes and CSS styling (white-space: pre-wrap) ? —Th e DJ (talk • contribs) 12:10, 27 June 2019 (UTC)
 * User:TheDJ, I already tried that but sadly it's not helpful – Both the opener and the closure of the first non-HTML tag (x tag), appear as regular text in div, source, and actually any tag I tried which isn't pre. 182.232.21.241 (talk) 12:35, 27 June 2019 (UTC)
 * For single tags and tag pairs, use :
 * → 
 * For more complex constructs, use . -- Red rose64 &#x1f339; (talk) 18:26, 27 June 2019 (UTC)
 * I say again that I don't use SyntaxHighlight - at all...
 * Anyway, I decided to use  in the end because it's the only one that works and seems to me there shouldn't be a problem using it (I consider using a category for pages including it just in case I'll have to replace it). 182.232.16.31 (talk) 07:32, 28 June 2019 (UTC)
 * For more complex constructs, use . -- Red rose64 &#x1f339; (talk) 18:26, 27 June 2019 (UTC)
 * I say again that I don't use SyntaxHighlight - at all...
 * Anyway, I decided to use  in the end because it's the only one that works and seems to me there shouldn't be a problem using it (I consider using a category for pages including it just in case I'll have to replace it). 182.232.16.31 (talk) 07:32, 28 June 2019 (UTC)
 * Anyway, I decided to use  in the end because it's the only one that works and seems to me there shouldn't be a problem using it (I consider using a category for pages including it just in case I'll have to replace it). 182.232.16.31 (talk) 07:32, 28 June 2019 (UTC)
 * Anyway, I decided to use  in the end because it's the only one that works and seems to me there shouldn't be a problem using it (I consider using a category for pages including it just in case I'll have to replace it). 182.232.16.31 (talk) 07:32, 28 June 2019 (UTC)

Erase a picture on Whatsapp
I'd like to erase for everyone (not just for me) a picture I posted yesterday on a Whatsapp group. Is there a way to do it? Thanks. --93.70.70.198 (talk) 18:28, 27 June 2019 (UTC)
 * You do a long press (if you have an iPhone, be careful not to trigger the "Force Touch action instead"). Then choose delete from the contextual menu. It will now be deleted on any other phone, when it connects to WhatsApp the next time. This normally only works for messages you posted yourself. See also: https://faq.whatsapp.com/en/android/26000068/ —Th e DJ (talk • contribs) 08:32, 28 June 2019 (UTC)