0

This is sample MD file in VS code:

```cpp
char c = 5;
printf("aaaa");
```

```actionscript
var i:int = 5;
```

```as
var i:int = 5;
```

```actionscript3
var i:int = 5;
```

```as3
var i:int = 5;
```

The cpp code blocks highlights, but the actionscript (I tried many as code keywords) does not.

I tried to install some ActionScript extensions to VS code, namely:

  • ActionScript & MXML
  • AS3, MXML and SWF extension
  • ActionScript 3
  • AS2 language support
  • ActionScript Tools
  • ED extension Pack: Flash and few others,

none of them worked for me. Some of them hilighted the .as extension files, but not the code in Markdown.

What does work is that if I install some Markdown extension for extended preview, then I can click Preview button and it shows formatted code in extra window, but I'd like to have it in the editor, like the cpp does.

See the image: Cpp hilights, AS not

Did someone solve that situation? Thank you in advance for any answer.

2
  • That ability to render syntax highlighting in code blocks/fences probably has to be implemented in the Actionscript language server. I think you should file an issue on one of the extensions. Commented Jun 16 at 17:01
  • IIRC Notepad++ had a set of rules to highlight AS3, but I'd not expect any modern IDEs to still support AS3 syntax due to Flash phasing out in ca 2017. Commented Jul 2 at 8:23

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.