Categories: Wordpress

Autoit syntax highlighter for wordpress

Step 1: Install plugin SyntaxHighlighter Evolved http://wordpress.org/extend/plugins/syntaxhighlighter/
Step 2: Download Autoit brush

https://www.mediafire.com/file/wvi54xebkqdde78/SyntaxHighlighterForAutoIt.zip/file

Step 3: Upload it to folder: /public_html/wp-content/plugins/syntaxhighlighter/syntaxhighlighter3

Step 4: Edit file: /public_html/wp-content/plugins/syntaxhighlighter/syntaxhighlighter.php

+ Find code (line 104 + 105):

[php]
// Register brush scripts
wp_register_script( ‘syntaxhighlighter-core’, plugins_url(‘syntaxhighlighter/’ . $this->shfolder . ‘/scripts/shCore.js’), array(), $this->agshver );
[/php]

add this code after:

[php]
wp_register_script( ‘syntaxhighlighter-brush-autoit’, plugins_url(‘syntaxhighlighter/’ . $this->shfolder . ‘/scripts/shBrushAutoIt.js’), array(‘syntaxhighlighter-core’), $this->agshver );
[/php]

+ Find code (line 149 + 150)

[php]
$this->brushes = (array) apply_filters( ‘syntaxhighlighter_brushes’, array(
‘as3’ => ‘as3’,
[/php]

add this code after:

[php]
‘au3’ => ‘autoit’,
[/php]

Use short code

{au3}your autoit script code{/au3} (replace {} = [])

in your post. End!

admin

Đơn giản là mình là người đam mê công nghệ, thích học hỏi và chia sẻ. Mình mong muốn nhận được phản hồi của các bạn khi xem bất kỳ bài viết nào trên blog của mình. Mỗi ý kiến đóng góp, mỗi sự sẻ chia và góp ý của các bạn là điều mình cần nhất để blog hoàn thiện hơn. Điều đó thật sự quan trọng đối với mình. Xin chân thành cảm ơn!

Share
Published by
admin

Recent Posts

Sao chép dữ liệu từ Google Sheets Docs chỉ xem (2025)

Sao Chép Dữ Liệu Từ Google Sheets Chỉ Xem: Hướng Dẫn Chi Tiết Bạn đang…

3 ngày ago

Fix Layout bàn phím Tiếng Việt ENG-VI để sử dụng Windows + H và Unikey

Để sử dụng tính năng nhập liệu giọng nói tiếng Việt (Windows + H) đồng…

1 tuần ago

Cách tích hợp AI Gemini cho Google Sheets với hàm AskGPT tùy chỉnh

Bạn có bao giờ muốn "hỏi" trí tuệ nhân tạo trực tiếp từ bảng tính…

1 tuần ago

Thông báo tạm ngừng hoạt động

Lâu nay do một số vấn đề cá nhân nên admin không còn cập nhật…

2 năm ago

Adobe cho tải miễn phí bộ ứng dụng CS2

Năm 2013 đã đến, và Adobe quyết định tung ra một chương trình khuyến mãi…

7 năm ago

Link down đế chế 1 chuẩn Age Of Empires 1 Setup

Age Of Empires 1 Setup by Microsoft Studios Published October 15, 1997 Usage CC0 1.0…

8 năm ago