#574 syntax highlight for JavaScript files.

TBD
closed
nobody
None
1
2013-05-01
2012-10-02
No

Could you add a new type of file such as c / c++, to recognize automatically keywords of JavaScript files (*.js) ?

There is no 'JavaScript' in 'View - View As' menu.

Here are the JavaScript keywords - Already in use :
break export return
case for switch
comment function this
continue if typeof
default import var
delete in void
do label while
else new with

Here are the JavaScript keywords - Reserved for future use :
abstract implements protected
boolean instanceOf public
byte int short
char interface static
double long synchronized
false native throws
final null transient
float package true
goto private
ECMAScipt Reserved Words
catch enum throw
class extends try
const finally
debugger super

Discussion

  • Eran Ifrah
    Eran Ifrah
    2013-05-01

    • status: open --> closed
     
  • Eran Ifrah
    Eran Ifrah
    2013-05-01

    Implemented in git head
    Because of the similarities between C++ and JavaScript (and because scintilla implemented it this way) the JS syntax is now part of the C++ lexer.

    Any .js or .javascript will be recognized by codelite