|
|
#1 |
|
Connoisseur
![]() Posts: 64
Karma: 10
Join Date: Sep 2015
Location: Yerevan, Armenia
Device: none
|
inequality signs in script section
Is there a way to use the inequality signs like " > < " and like " & && " directly in the <script> section of the XHTML file in the Sigil?
With a very short function and an array of just 50-70 words - it is more easy for me to work directly with each smal xhtml file, not with separate JS file or files. PS. Also, you have often to restart the program, after making changes in JS file. Otherwise, the changes do not work even after saving. |
|
|
|
|
|
#2 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,763
Karma: 24088559
Join Date: Dec 2010
Device: Kindle PW2
|
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,915
Karma: 207182180
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
You should also be able to use CDATA tags if you want to use literal expressions that contain invalid xml characters.
Code:
<script type="text/javascript">
//<![CDATA[
if (hour < 18) {
greeting = "Good day";
}
//]]>
</script>
|
|
|
|
|
|
#4 |
|
Connoisseur
![]() Posts: 64
Karma: 10
Join Date: Sep 2015
Location: Yerevan, Armenia
Device: none
|
Thanks a lot.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Free (ADE-DRM) The Political Origins of Inequality [Globalization & Economic History] | ATDrake | Deals and Resources (No Self-Promotion or Affiliate Links) | 2 | 06-30-2017 04:22 AM |
| Signs of conversion | Kumabjorn | Amazon Kindle | 4 | 09-19-2011 01:15 PM |
| Unutterably Silly Funny Signs | radioflyertoo | Lounge | 45 | 09-24-2008 01:05 PM |