I am working with an HTML file and within a <script>
tag specifically. I usually fold my code using the marker method. However an annoying behavior sometimes happens with my syntax highlighting when I fold code. Example:
<script type="text/javascript">
// init {{{1
window.onload = init;
function init()
{
window.addEventListener('message', messageHandler, false);
GDT_MSG.requestSliceInfo();
GDT_MSG.requestSelected();
GDT_MSG.requestNetworkGraph();
}
+-- 11 lines: Parser: GLOBAL VARIABLES ------------------------------
+-- 60 lines: Message Handler ---------------------------------------
// Live Monitoring: Global Variables {{{1
/* arrays and important settings for live monitoring*/
var pkts = [];
var bytes= [];
var dataset;
var accum_data;
var totalPoints = 900;
var displayPoints = 60; // Initially displays the last minute
var plot;
var updateInterval = 5000;
The code that is above "GLOBAL VARIABLES" is correctly highlighted whereas the code below "Message handler" is not.
This annoyance fades away when I unfold all my folds... but of course this is not what I want. Does anyone know how to fix this?