Skip to content

Commit b2be5fc

Browse files
committed
Make a Visual Studio 2026 version of the extension
1 parent 03b4f39 commit b2be5fc

File tree

9 files changed

+105
-90
lines changed

9 files changed

+105
-90
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

AutoItSyntaxHighlight.sln

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.28803.352
3+
# Visual Studio Version 18
4+
VisualStudioVersion = 18.0.11222.15 d18.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{EE7022B2-277F-4251-B6AC-167AC2E6A27F}"
77
ProjectSection(SolutionItems) = preProject
8+
example.au3 = example.au3
89
README.md = README.md
910
EndProjectSection
1011
EndProject

AutoItSyntaxHighlight/AutoItSyntaxHighlight.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,13 @@
110110
<Reference Include="System.Drawing" />
111111
</ItemGroup>
112112
<ItemGroup>
113-
<PackageReference Include="Microsoft.VisualStudio.SDK" Version="17.0.32112.339" ExcludeAssets="runtime">
113+
<PackageReference Include="Microsoft.VisualStudio.SDK" Version="17.14.40265" ExcludeAssets="runtime">
114114
<IncludeAssets>compile; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
115115
</PackageReference>
116-
<PackageReference Include="Microsoft.VSSDK.BuildTools" Version="17.0.5234" />
116+
<PackageReference Include="Microsoft.VSSDK.BuildTools" Version="17.14.2120">
117+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
118+
<PrivateAssets>all</PrivateAssets>
119+
</PackageReference>
117120
</ItemGroup>
118121
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
119122
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />

AutoItSyntaxHighlight/app.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
</dependentAssembly>
5757
<dependentAssembly>
5858
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
59-
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0"/>
59+
<bindingRedirect oldVersion="0.0.0.0-4.0.4.0" newVersion="4.0.4.0"/>
6060
</dependentAssembly>
6161
<dependentAssembly>
6262
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>

AutoItSyntaxHighlight/source.extension.vsixmanifest

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,40 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
33
<Metadata>
4-
<Identity Id="82FB2738-79BB-433D-A3E6-0F6D23651048" Version="1.2022.0.1" Language="en-US" Publisher="David Roller" />
5-
<DisplayName>AutoIt Syntax Highlight 2022</DisplayName>
4+
<Identity Id="C3A76D43-F724-41CB-AF05-72FF0FA02482" Version="1.2026.0.1" Language="en-US" Publisher="David Roller" />
5+
<DisplayName>AutoIt Syntax Highlight 2026</DisplayName>
66
<Description xml:space="preserve">AutoIt scripting language support for Visual Studio</Description>
77
<License>LICENSE</License>
88
<Icon>Resources\Icon.png</Icon>
99
<PreviewImage>Resources\Preview.png</PreviewImage>
1010
<Tags>Syntax, Highlight, Script, AutoIt, Language</Tags>
1111
</Metadata>
12-
<Installation>
13-
<InstallationTarget Version="[17.0,18.0)" Id="Microsoft.VisualStudio.Community">
12+
<Installation InstalledByMsi="false">
13+
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0,19.0)">
14+
<ProductArchitecture>arm64</ProductArchitecture>
15+
</InstallationTarget>
16+
<InstallationTarget Id="Microsoft.VisualStudio.Enterprise" Version="[17.0,19.0)">
17+
<ProductArchitecture>arm64</ProductArchitecture>
18+
</InstallationTarget>
19+
<InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="[17.0,19.0)">
20+
<ProductArchitecture>arm64</ProductArchitecture>
21+
</InstallationTarget>
22+
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0,19.0)">
1423
<ProductArchitecture>amd64</ProductArchitecture>
1524
</InstallationTarget>
16-
<InstallationTarget Version="[17.0,18.0)" Id="Microsoft.VisualStudio.Pro">
25+
<InstallationTarget Id="Microsoft.VisualStudio.Enterprise" Version="[17.0,19.0)" >
1726
<ProductArchitecture>amd64</ProductArchitecture>
1827
</InstallationTarget>
19-
<InstallationTarget Version="[17.0,18.0)" Id="Microsoft.VisualStudio.Enterprise">
28+
<InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="[17.0,19.0)">
2029
<ProductArchitecture>amd64</ProductArchitecture>
2130
</InstallationTarget>
2231
</Installation>
2332
<Dependencies>
2433
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.8,)" />
2534
</Dependencies>
2635
<Prerequisites>
27-
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[17.0,18.0)" DisplayName="Visual Studio-Kern-Editor" />
28-
<Prerequisite Id="Microsoft.VisualStudio.Component.DiagnosticTools" Version="[17.0,18.0)" DisplayName="Profilerstellungstools" />
36+
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[17.0,19.0)" DisplayName="Visual Studio-Kern-Editor" />
37+
<Prerequisite Id="Microsoft.VisualStudio.Component.DiagnosticTools" Version="[17.0,19.0)" DisplayName="Profilerstellungstools" />
2938
</Prerequisites>
3039
<Assets>
3140
<Asset Type="Microsoft.VisualStudio.MefComponent" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%|" />

Images/WithExtension.png

304 KB
Loading

Images/WithoutExtension.png

300 KB
Loading

README.md

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,45 @@
1-
# AutoItSyntaxHighlight
1+
# AutoItSyntaxHighlight
22

3-
AutoIt scripting language support for Visual Studio
3+
**AutoIt Scripting Language Support for Visual Studio**
44

5-
![CodeQL](https://github.com/Therena/AutoItSyntaxHighlight/actions/workflows/codeql-analysis.yml/badge.svg)
5+
This extension integrates the **AutoIt** scripting language into Visual Studio, providing native syntax highlighting for `.au3` files to improve code readability and developer productivity.
66

7-
Download this extension from the Visual Studio Marketplace
8-
- Visual Studio 2015 - Visual Studio 2017: [AutoIt Syntax Highlight 2017](https://marketplace.visualstudio.com/items?itemName=DavidRoller.AutoItSyntaxHighlight)
9-
- Visual Studio 2019: [AutoIt Syntax Highlight 2019](https://marketplace.visualstudio.com/items?itemName=DavidRoller.AutoItSyntaxHighlight2019)
10-
- Visual Studio 2022: [AutoIt Syntax Highlight 2022](https://marketplace.visualstudio.com/items?itemName=DavidRoller.AutoItSyntaxHighlight2022)
7+
## 📥 Installation
8+
Select the version appropriate for your Visual Studio installation:
119

12-
## AutoIt
10+
| Visual Studio Version | Marketplace Extension |
11+
| :--- | :--- |
12+
| **Visual Studio 2022** | [AutoIt Syntax Highlight 2026](https://marketplace.visualstudio.com/items?itemName=DavidRoller.AutoItSyntaxHighlight2026) |
13+
| **Visual Studio 2022** | [AutoIt Syntax Highlight 2022](https://marketplace.visualstudio.com/items?itemName=DavidRoller.AutoItSyntaxHighlight2022) |
14+
| **Visual Studio 2019** | [AutoIt Syntax Highlight 2019](https://marketplace.visualstudio.com/items?itemName=DavidRoller.AutoItSyntaxHighlight2019) |
15+
| **Visual Studio 2017** | [AutoIt Syntax Highlight 2017](https://marketplace.visualstudio.com/items?itemName=DavidRoller.AutoItSyntaxHighlight) |
16+
| **Visual Studio 2015** | [AutoIt Syntax Highlight 2017](https://marketplace.visualstudio.com/items?itemName=DavidRoller.AutoItSyntaxHighlight) |
1317

14-
![AutoIt logo](https://www.autoitscript.com/w/images/8/89/Logo2.png)
15-
16-
AutoIt scripting language: [AutoIt](https://www.autoitscript.com)
18+
## ✨ Features
1719

18-
## Features
20+
**Comprehensive Syntax Highlighting**
21+
Automatically color-codes elements in your AutoIt scripts to match the Visual Studio editor standards:
22+
* **Keywords:** Easily distinguish language controls and commands.
23+
* **Strings:** Clear visual separation for text literals.
24+
* **Comments:** Improved readability for documentation.
25+
* **Functions:** Quick identification of function calls and definitions.
1926

20-
- Syntax highlight for Auto scripts in Visual Studio
21-
- Syntax highlight for comments
22-
- Syntax highlight for functions
23-
- Syntax highlight for strings
24-
- Syntax highlight for keywords
27+
## 👁️ Visual Comparison
2528

26-
### Syntax highlight for comments, functions, strings and keywords
27-
28-
Open ".au3" files in Visual Studio **without** this extension:
29+
See the difference in clarity when editing `.au3` files.
2930

31+
### Without Extension
3032
![Without extension](https://github.com/Therena/AutoItSyntaxHighlight/blob/master/Images/WithoutExtension.png?raw=true)
3133

32-
Open ".au3" files in Visual Studio **with** this extension:
33-
34+
### With Extension
3435
![With extension](https://github.com/Therena/AutoItSyntaxHighlight/blob/master/Images/WithExtension.png?raw=true)
3536

36-
## License
37+
## ℹ️ About AutoIt
38+
![AutoIt logo](https://www.autoitscript.com/w/images/8/89/Logo2.png)
39+
40+
AutoIt is a BASIC-like scripting language designed for automating the Windows GUI and general scripting.
41+
* **Official Website:** [www.autoitscript.com](https://www.autoitscript.com)
42+
43+
## 📄 License
44+
This project is licensed under the [Apache 2.0 License](https://github.com/Therena/AutoItSyntaxHighlight/blob/master/LICENSE).
3745

38-
[Apache 2.0](https://github.com/Therena/AutoItSyntaxHighlight/blob/master/LICENSE)

example.au3

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#include <GUIConstantsEx.au3>
2+
#include <MsgBoxConstants.au3>
3+
4+
; 1. Create the Graphical User Interface (GUI)
5+
Local $hGUI = GUICreate("My First AutoIt Script", 300, 150)
6+
7+
; Add an input box and a button
8+
GUICtrlCreateLabel("Enter text to type into Notepad:", 10, 10)
9+
Local $idInput = GUICtrlCreateInput("Hello World!", 10, 30, 280, 20)
10+
Local $idBtnGo = GUICtrlCreateButton("Launch & Type", 50, 70, 200, 40)
11+
12+
; Show the GUI
13+
GUISetState(@SW_SHOW)
14+
15+
; 2. The Main Loop (Keeps the script running)
16+
While 1
17+
; Listen for user actions
18+
Switch GUIGetMsg()
19+
Case $GUI_EVENT_CLOSE
20+
; User clicked the 'X' to close
21+
ExitLoop
22+
23+
Case $idBtnGo
24+
; User clicked the button
25+
RunAutomation()
26+
EndSwitch
27+
WEnd
28+
29+
; 3. The Function that does the work
30+
Func RunAutomation()
31+
; Read what the user typed in the box
32+
Local $sMessage = GUICtrlRead($idInput)
33+
34+
; Run Notepad
35+
Run("notepad.exe")
36+
37+
; Wait for Notepad to actually open and become active
38+
; "[CLASS:Notepad]" ensures we are targeting the Notepad window specifically
39+
WinWaitActive("[CLASS:Notepad]")
40+
41+
; Send the keystrokes
42+
Send("AutoIt is typing this for you..." & "{ENTER}")
43+
Sleep(500) ; Wait half a second
44+
Send($sMessage)
45+
46+
; Show a completion message
47+
MsgBox($MB_OK, "Success", "Automation finished!")
48+
EndFunc

0 commit comments

Comments
 (0)