Questions tagged [embedded-script]
12 questions
35
votes
9 answers
remove / reset inherited css from an element
I know this question was asked before, but before marking it as a duplicate, I want to tell you that my situation is a little different from what I found on the internet.
I'm building and embedded script that people can put it on their sites. This…

Doua Beri
- 10,612
- 18
- 89
- 138
8
votes
1 answer
Next.JS - Gist's embedded in markdown rendered via dangerouslySetInnerHTML only show after full page load, not React route load
I have a series of blog posts stored in MD files, some of these contain multiple Gist embeds in the form of script tags.
The MD contents are rendered to the page via dangerouslySetInnerHTML, and all is fine when the page is navigated to directly.…

Rob Earlam
- 864
- 1
- 8
- 15
4
votes
2 answers
How to see syntax errors reported with actual line numbers in the parent script when Perl is embedded within shell script?
For no justifiable reason at all, I have a pretty substantial Perl script embedded within a Bash function that is being invoked within an autoenv .env file.
It looks something like this:
perl='
$inverse = "\e[7m";
$invoff = "\e[27m";
…

TheDudeAbides
- 1,821
- 1
- 21
- 29
4
votes
2 answers
Lua scripting line by line
I added Lua scripting to my C# Application by using the DynamicLua libary and it works very well.
I would like to implement that you get the current line which is being executed (Like in Visual Studio) and highlight it.
Currently I am doing this:
…

pixelport
- 83
- 1
- 6
2
votes
2 answers
Can xsl:script be used with XMLCompiledTransform?
I made an XSL script that used msxml:script for use with XMLCompiledTransform, but the people who need it said the script wouldn't work on their Linux/Perl environment (that's literally as much as I know about how they're using the XSL) because it…

Bob
- 7,851
- 5
- 36
- 48
2
votes
0 answers
What is the most efficient way of loading scripts for Social Network APIs?
Like most websites these days, my personal website has an array of widgets for social networks, such as “Like”, “Follow” and “Share” buttons etc.
In order to embed these widgets, I use the JavaScript code that is provided on the social networks’…

Jordan Clark
- 750
- 5
- 18
1
vote
0 answers
Lua: Bug on my multitasking utility
I got problem when making a class to utilize multitasking system in Lua.
This class should enable run multiple function at same time by use of Lua's coroutine system.
I'd like to write the ideal usage of the class in both host code and Lua…

darkspider
- 136
- 5
1
vote
0 answers
alternatives to emdedded scripting engines
Each time I create a software at some point I wish to provide a way for users to control it programatically.
So far I explored the following paths:
Implement the core of it as a library (dll/so, jar, TCL package...)
Embed a scripting engine…

acapola
- 1,078
- 1
- 12
- 23
0
votes
1 answer
Why am I failing to resolve public java objects in jython when using "from javax.mail import *"?
I'm not sure if this is a jython bug or a misunderstanding on some nuances of importing java packages/classes with jython 2.5.2.
I have a jython class that executes jython scripts from java. One of these scripts just sends out mail.
Snippet of…

Brian
- 1,026
- 11
- 18
0
votes
1 answer
Does a lack of indentation guarantee a top-level context in Python?
I'm working on a script parser that expands embedded Python code into script code by extracting all Python code into a single file so that it can remember Python variables defined earlier in the script. In order to substitute the Python output in…

Vitruvie
- 2,327
- 18
- 25
0
votes
1 answer
build and run c++ within c++ -- c++ scripts (instead of lua)
Currently, I embed lua in my c++ code.
I wonder if the same is possible with c++. That way I can pass objects and use libraries within the script. to do this, I think I would need the following from the master c++ code:
execute the running of the…

kirill_igum
- 3,953
- 5
- 47
- 73
0
votes
3 answers
How can I execute a Perl script from my Java program?
I am writing a little tool that needs to invoke a Perl script to do some stuff.
I already know and written the code on how to call it, but I have to provide the full-qualified path to the Perl script for the exec().
Is there any possibility to…

Stefan
- 2,603
- 2
- 33
- 62