sbarex / SourceCodeSyntaxHighlight

Quick Look extension for highlight source code files on macOS 10.15 and later.
GNU General Public License v3.0
2.88k stars 71 forks source link

[Formats] Add support for assembly (.s, .S) #263

Closed arif-desu closed 6 months ago

arif-desu commented 8 months ago

Add support for assembly files with .s and .S extension.

sbarex commented 6 months ago

The rendering egine allow to support the Generic Assembler with these extensions: 29k, 68s, 68x, a51, asm, x86. It is valid also for .s and .S?

arif-desu commented 6 months ago

@sbarex How do I configure it to be used with .s and .S files?

sbarex commented 6 months ago

You cannot configure additional extensions. You need to recompile the app with the new extension.

arif-desu commented 6 months ago

You cannot configure additional extensions. You need to recompile the app with the new extension.

Hence the request. The rendering engine should be able to handle it. All the assembly code I encounter is in .s and .S extensions, including Linux kernel.

sbarex commented 6 months ago

This is why I asked, do files with the extension have the same syntax as those with the 29k, 68s, 68x, a51, asm, x86 extensions?

arif-desu commented 6 months ago

This is why I asked, do files with the extension have the same syntax as those with the 29k, 68s, 68x, a51, asm, x86 extensions?

Sorry didn't comprehend the question at first. I thought this project was using highlight.js with a html renderer.

But only now I learnt it's using some other project called highlight on gitlab. Going through the assembler source code, it might not be able to render arm and riscv instructions. I'll create a pull request in upstream.