faq.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <html xmlns="http://www.w3.org/1999/xhtml">
  2. <head>
  3. <title>CodeMirror: Frequently Asked Questions</title>
  4. <link rel="stylesheet" type="text/css" href="css/docs.css"/>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  6. <style type="text/css">
  7. h3 {font-size: 100%;}
  8. </style>
  9. </head>
  10. <body>
  11. <div class="top underline" style="text-align: center">
  12. <h1 style="margin-bottom: 0;"><a href="index.html" style="text-decoration: none; color: black;">CodeMirror</a></h1>
  13. <h2 style="margin-top: 0; margin-bottom: .3em;">Frequently Asked Questions</h2>
  14. </div>
  15. <h3 id="license">Q: Can I use CodeMirror in my such-and-such project?</h3>
  16. <p>A: Yes. The <a href="LICENSE">license</a> is short, simple, and
  17. permissive.</p>
  18. <h3 id="cache">Q: You said you fixed this-and-this issue, but I'm
  19. still seeing it.</h3>
  20. <p>A: One possibility is that I screwed up, but a very real
  21. alternative is that you're looking at a cached version of the
  22. CodeMirror scripts. Because the scripts are loaded into an iframe,
  23. the ctrl-f5 you issued on the outer page doesn't always cause them
  24. to be reloaded (IE, Opera, and Firefox are the worst offenders
  25. here). Clear your cache and re-try.</p>
  26. <h3 id="textarea">Q: I can't put content containing
  27. <code>&lt;/textarea></code> into CodeMirror!</h3>
  28. <p>A: [Web-programming 101] The first <code>&lt;/textarea></code>
  29. following a <code>&lt;textarea></code> tag will close the
  30. textarea. This has nothing to do with CodeMirror. Sit down, and
  31. spend ten minutes thinking about why HTML-escaping was
  32. invented.</p>
  33. <h3 id="debug">Q: I have this huge chunk of code that does not
  34. work, can you debug it for me?</h3>
  35. <p>A: Nope. If you can't be bothered isolate your problem in 20
  36. lines of code or less, I can't be bothered to think about it.</p>
  37. <h3 id="patch">Q: How do I submit patches for CodeMirror?</h3>
  38. <p>A: Preferred way is to create a fork on <a
  39. href="http://github.com/marijnh/CodeMirror">github</a>, add your
  40. patch, and send me a pull request. Diffs (against the latest
  41. version!) by mail are also cool.</p>
  42. </body>
  43. </html>