User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Perl section within the Software Development category of DaniWeb, a massive community of 391,940 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,865 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Perl advertiser:
Views: 908 | Replies: 0
Reply
Join Date: Jul 2005
Posts: 20
Reputation: davidianstyle is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
davidianstyle's Avatar
davidianstyle davidianstyle is offline Offline
Newbie Poster

Emacs syntax highlighting for perl/javascript

  #1  
Jan 2nd, 2008
I'm working with perl and javascript and I was wondering if anyone knew of a way to get syntax highlight for two or more programming languages at once in Emacs.

For example:

# This is perl's comment
my $variable;
// This is javascript's comment
var variable;

I'd like the perl comment to have the same color highlighting as the javascript comment and not have the apostrophe in javascript's ruin highlighting for the rest of the code (since the line is not interpreted as a comment in the editor) Please let me know if I'm being confusing.
.: davidianstyle :.
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Perl Marketplace
Thread Tools Display Modes

Other Threads in the Perl Forum

All times are GMT -4. The time now is 8:41 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC