question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: htmlMode.startState is not a function

See original GitHub issue

With this Code:

  <script>

   var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
     lineNumbers: true,
     extraKeys: {"Ctrl-Space": "autocomplete"},
     mode: "text/html"
   });

 </script>

i get in firefox this error message TypeError: htmlMode.startState is not a function
but why ?😄 I include all needed Javascripts.

Thanks Fabian

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
marijnhcommented, Jul 2, 2015

Did you include the XML, JavaScript, and CSS modes? These are dependencies of the htmlmixed mode.

2reactions
TeaWebcommented, Nov 25, 2018

i try use the php mode and have this error php.js:163 Uncaught TypeError: htmlMode.indent is not a function .... any idea?

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: htmlMode.startState is not a function · Issue #3351
With this Code: i get in firefox this error message TypeError:... ... php.js:163 Uncaught TypeError: htmlMode.indent is not a function .
Read more >
CodeMirror HTML mode not working
I'm trying to style code samples with CodeMirror, but it works partially - it applies the selected theme to the textarea but the...
Read more >
CodeMirror: Test Suite
startState is not a function (haml.js:96). haml_oneElementPerLine: TypeError: htmlMode. ... haml_interpolationInHashAttribute: TypeError: htmlMode.
Read more >
CodeMirror: Test Suite - Mutabilis
haml_elementName: TypeError: htmlMode.startState is not a function (haml.js:89). haml_oneElementPerLine: TypeError: htmlMode.startState is not a function ...
Read more >
Test Suite - CodeMirror
startState is not a function (mode_test.js:119). haml_elementName: TypeError: htmlMode.startState is not a function (haml.js:101).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found