Code Annotation and Preview with HTML - html

http://twitter.github.com/bootstrap/scaffolding.html
http://angularjs.org/#/list (the basics one)
Basically, I'm wondering what tools there are out there for me to create what they have there. The one I really like is he angularJS one, because I need a way to allow annotations within my code snippets.
So, basically. My question is this:
How did they create the annotations to work at certain places in the code (so you hover over the highlight), is that created from a library. If so, where is this library found? I found some online, but they all looked like terrible sticky notes, and I want something more stylish like this.
And finally, how do i get the line numbering to work?
Thank you.
Alex.

Related

Forge data visualization_Add information

Currently I have placed sprites and I have the events as in the example on the page: https://forge.autodesk.com/en/docs/dataviz/v1/developers_guide/examples/handling_sprite_events/.
But I don't know how to add information with a pop up as seen on the web.
How to do this with the information and displaying it in Forge: Objective
I have not found any information on how to do it and the example on Github https://github.com/Autodesk-Forge/forge-dataviz-iot-reference-app/tree/main/client/pages I don't quite understand it, already that many things are mixed. If someone could help me. I am starting on this.
Basically what you want to achieve is to display an html div on hover and hide it when not hovering.
You can inspire from this post Placing custom markup which is pretty close to what you want to achieve.
However, the examples you mention are using the Data Visualization extension and the React component called CustomTooltip. If you are using React in your project you can definitly take a look at the Hyperion's reference app.

Create a dynamic Products page with just html/css?

Hi basically i want to have one html page that is the "products" page, and then just have the site navigation link correspond to a certain brand. I want it to look and function like any normal shopping site say a clothes site where you choose filters and it will show only clothes for that colour or brand and remove everything else, after a quick google it seems stuff like this is done in jquery and javascript etc. is it possible to do in just html/css?
I know C++ but it doesn't seem like its really suited for web dev.
I was also thinking maybe i could do this with a google custom search engine.
Just tell me straight if im out of luck and will just have to spend time learning some language/framework. Thanks.
No isn't possible without jquery or javascript
Well, i did it myself, so the answer would be: "yes it is possible".
However, extremely hard.
You can create the .html page using file creation and file writing.
and you can write to that file (just like any other text file) with fwrite or something like that (c++ function).
you can do it "dynamic", but all calculation would be on the c++ side with tons of if statements, but at the end? => you'll write the format of an html page:
<html><header><body>...
something like this:
fwrite("<html>\n",$fp);
fwrite("<head>\n",$fp);
....
once again... possible, but hard.

How can I add a table in a theme using Wordpress

I’m building a site as part of my research using Word Press. I’m trying to display samples on the homepage in a neat way, something similar to this one http://www.maitrechoux.com/menu/index.html?categ_id=all .
I have removed all of the home function using remove_action. How can I add the table and then how can I add the pictures inside each cell? Is it only matter of CSS or do I need to add HTML code for this? I recently joined word press community and this is the only thing remained to complete my website. Really appreciate any help!
NO, don't use tables. I think what you actually want is just to display something that looks like table.
You need to code both html and css for that.
You can use any of popular css frameworks to help you out, or you can code it yourself using, flex, floats, or grid...
When you are done then with wp functions you need to render that data in your wp theme.
Your question is to broad and big to be answered via code snippets or examples, sorry.
I recently wanted to change the template of my WordPress website and use React tables.
But this would cause my site to drop in Google rankings, and in terms of SEO, this would not be a good thing.
That's why I decided to use my template pre-built tables and change the files to my liking in the settings section by editing css files.

How to show Angular issues in JsFiddle?

I'd like to show an issue with my Angular code so I tried to create a fiddle for it. Since I wasn't sure how to link AngularJS package in (other than entering the whole URL, which I'm bound to fail on due to misspelling and laziness), I googled "how to easy link to angulaarjs in jsfiddle" and got a fiddle like this: jsfiddle.net/dakra/U3pVM/ (among many others).
The poster doesn't actually link to anything (except bootstraping the styles) and I'm not quite clear on why.
I'd like to know if that's the proper way to present an example when asking Angular related questions on StackOverflow. If not, what is?
As a secondary question, I'd like to know how to properly handle the fact that in my example locally, I'm using ng directives directly in html and body (for smaller examples) but JsFiddle explains that those tags, already being included, aren't going to work. Should I move those directives deeper into the markup structure?

How to imitate Bootstrap's html code highlighting and copy to clipboard?

I really like the getting started guide by Bootstrap (http://getbootstrap.com/css/), and I want to do something similar in my project. I've looked at highlight.js but it seems the color is a bit off to me. I don't know how to implement the copy to clipboard feature. Is this something I should be able to come up with on my own? I prefer third party solutions since this isn't the main crux of my project, but I thought this will be nice to my users.
I'd suggest giving highlight.js another look. There are multiple style themes you can choose from if you find the color to be off on a particular one. Or, you can do a little css to customize the colors yourself.
An alternative for syntax highlighting is prism.js.
For the copy to clipboard piece, take a look at ZeroClipboard.