This are the allowed mime-types for script, style xml-stylesheet and link tags
List of allowed
lang
attribute values that will change the embedded code detection:
ℹ️ Not setting a
lang
attribute will automatically fallback to any of thetype
attribute detection, or fallback to Javascript
- javascript
- the embedded code will be displayed as Javascript
- typescript
- the embedded code will be displayed as Typescript
- coffeescript
- the embedded code will be displayed as Coffeescript
- dart
- the embedded code will be displayed as Dart
List of allowed
type
attribute values that will change the embedded code detection:
ℹ️ Not setting a
type
attribute will automatically fallback to any of thelang
attribute detection, or fallback to Javascript
⚠️ Please note that some of the used MIME types are not defined by IANA and were created based on the Javascript ones.
- Content will be displayer as Javascript
- module
- text/javascript
prefered
✔️ - text/ecmascript
deprecated but allowed
⚠️ - text/x-javascript
deprecated but allowed
⚠️ - text/x-ecmascript
deprecated but allowed
⚠️ - application/javascript
deprecated but allowed
⚠️ - application/ecmascript
deprecated but allowed
⚠️ - application/x-javascript
deprecated but allowed
⚠️ - application/x-ecmascript
deprecated but allowed
⚠️
- Content Will be displayerd as Typescript
- text/typescript
not a standard MIME-type
⚠️ - text/x-typescript
not a standard MIME-type
⚠️ - application/typescript
not a standard MIME-type
⚠️ - application/x-typescript
not a standard MIME-type
⚠️
- text/typescript
- Content will be displayed as Coffeescript
- text/coffeescript
not a standard MIME-type
⚠️ - text/x-coffeescript
not a standard MIME-type
⚠️ - application/coffeescript
not a standard MIME-type
⚠️ - application/x-coffeescript
not a standard MIME-type
⚠️
- text/coffeescript
- Content will be displayed as Dart
- text/dart
not a standard MIME-type
⚠️ - text/x-dart
not a standard MIME-type
⚠️ - application/dart
not a standard MIME-type
⚠️ - application/x-dart
not a standard MIME-type
⚠️
- text/dart
List of allowed
lang
attribute values that will change the embedded code detection:
ℹ️ Not setting a
lang
attribute will automatically fallback to any of thetype
attribute detection, or fallback to CSS
- css
- the embedded code will be displayed as CSS
- less
- the embedded code will be displayed as LESS
- scss
- the embedded code will be displayed as SCSS
- sass
- the embedded code will be displayed as SASS
- postcss
- the embedded code will be displayed as PostCSS
- stylus
- the embedded code will be displayed as Stylus
- styl
- the embedded code will be displayed as Stylus
List of allowed
type
attribute values that will change the embedded code detection:
ℹ️ Not setting a
type
attribute will automatically fallback to any of thelang
attribute detection, or fallback to Javascript
⚠️ Please note that some of the used MIME types are not defined by IANA and were created based on the Javascript ones.
- Content will be displayer as CSS
- text/css
standard MIME-type
✔️
- text/css
- Content Will be displayerd as LESS
- text/less
not a standard MIME-type
⚠️
- text/less
- Content will be displayed as SCSS
- text/scss
not a standard MIME-type
⚠️
- text/scss
- Content will be displayed as SASS
- text/sass
not a standard MIME-type
⚠️
- text/sass
- Content will be displayed as PostCSS
- text/postcss
not a standard MIME-type
⚠️
- text/postcss
- Content will be displayed as Stylus
- text/styl
not a standard MIME-type
⚠️ - text/stylus
not a standard MIME-type
⚠️
- text/styl
These tags will not change content detection as they are void elements. But they will have language visual differentiation
List of type attribute values that will have visual differentiation
- text/css
- text/xml
- text/xls
List of type attribute values that will have visual differentiation
- text/css
- text/less
- text/sass
- text/scss
- text/styl
- text/stylus
- text/postcss