User talk:Guy Harris/Archives/2022/10

Latest comment: 2 years ago by Visite fortuitement prolongée in topic Intel 7


<syntaxhighlight> has no lexer for IBM Basic assembly language

  Thank you for your contributions to Wikipedia. Regarding your edits to Function (computer programming), please use the preview button before you save your edit; this helps you find any errors you have made and prevents clogging up recent changes and the page history, as well as helping prevent edit conflicts. Below the edit box is a Show preview button. Pressing this will show you what the article will look like without actually saving it.

 
The Show preview button is right next to the Publish changes button and below the edit summary field.

It is strongly recommended that you use this before saving. If you have any questions, contact the help desk for assistance. <syntaxhighlight> has no "assembler" lexer for IBM Basic assembly language. I altered lang="assembler" with "text". Cedar101 (talk) 05:34, 4 October 2022 (UTC)

@Cedar101: Thanks, but I'm quite aware of the Show Preview button, and the one "Fix previous edit" edit was, I think, done after I previewed the previous edit; I hadn't noticed the incorrect indentation of the C code in the preview. The multiple edits to undo the removal of the indentation were done because I was putting indentation back to match the source prior to the other user's edits; perhaps the best way to do it would be do edit the entire article in one window, with a diff between the last edit by that user and the current status in another window, and fixing them all in one fell swoop.
As for the lack of an "assembler" lexer for generic assembler code (I already noticed that it didn't have a lexer for S/3x0 assembler, whether it's BAL or HLASM; the GAS lexer might handle it, although, given that it's described as being "For Gas (AT&T) assembly code.", it presumably doesn't handle particular instruction sets, and, prehaps more importantly, as it's for gas, it probably doesn't understand the IBM assembler convention of "asterisk at the beginning of a line indicates a comment") The text appeared as pre-formatted text; it appears that if an unknown lexer is specified, it treats it as plain text.
Perhaps the use of "text" for unknown languages should be documented in mw:Extension:SyntaxHighlight#Supported languages as well as in mw:Extension:SyntaxHighlight#Syntax highlighting error category. Guy Harris (talk) 05:59, 4 October 2022 (UTC)

Intel 7

FYI Talk:7 nm process#Intel 7 Visite fortuitement prolongée (talk) 19:07, 6 October 2022 (UTC)