這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

asm-brush

外掛說明

asm-brush is small WordPress plugin I wrote and dedicated to the dinosaurs (like me) who still use and want to share assembly language source code. It is a brush designed to work with the SyntaxHighlighter Evolved https://wordpress.org/extend/plugins/syntaxhighlighter/ WordPress plugin (written by Viper), itself based on the SyntaxHighlighter JavaScript package by Alex Gorbatchev. To be able to use this brush, you will need the asm-brush as well as the SyntaxHighlighter Evolved plugins installed.

To highlight your assembly code, simply wrap it between [assembly] and [/assembly] or [x86] and [/x86] tags.

The brush detects and applies different styles to the following elements:

  • Registers
  • Assembly language user instructions
  • Assembly language system instructions
  • FPU instructions
  • Multimedia instructions
  • MASM specific directives & instructions
  • Numbers (decimal and hexadecimal)
  • IDA (The Interactive Disassembler) labels

The styles are easily customizable by editing the CSS file.

安裝方式

Uploading The Plugin

Extract all files from the ZIP file, making sure to keep the file/folder structure intact, and then upload it to /wp-content/plugins/.

Plugin Usage

  • Have the “SyntaxHighlighter Evolved” plugin installed
  • Wrap your assembly language code between [assembly] and [/assembly] or [x86] and [/x86]

常見問題集

Will the brush work with other processors?

Processors have in common some mnemonics, so yes it will, but not everything will be highlighted like with the x86 instruction set, you need to add your particular instructions set to the brush.

How can I add instructions to the brush?

By editing the shBrushAsm.js file.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈asm-brush〉的開發相關工作。

參與者

將〈asm-brush〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.1

  • Improved some pattern recognition (db, dd, dw and some MASM mnemonics).

1.0.0

  • First release.