naming and configuring jsfiddle

醉酒当歌 提交于 2019-12-21 04:07:18

问题


This is going to sound like a really stupid question to whoever knows the answer!

When I create a JSfiddle it appears on my listing page like this

cGzCe Revision 8

Then I title it 'Multi-create nodes ' (extra space since the revision number is added with no space to this phrase) and update again and get this

cGzCe Multi-create nodes Revision 9

I want to alter the text of the cGzCe in the larger font - where can I do that? I forked someone else's fiddle the other day and it had this done, but I couldn't see how the settings differed from one of my fiddles! Help please :-D

...

Also, for a bonus point - does anyone know how to disable the auto-indenting... (or make it work reliably, or lower the indent to two spaces..)

Thanks!


回答1:


While I think this is off-topic for Stack Overflow (and have voted to close as such), the way to have no string of random characters besides the title of the saved Fiddle is, when you start the Fiddle, declare its title; if the title is added after a point at which it's been previously saved then the string of characters will appear, since that's the 'base'/'original' Fiddle, whereas the 'titled' Fiddle is a later revision.




回答2:


I had trouble replacing the fiddle code number with a fiddle name and description.

Here's how I got the results I wanted:

  1. Clicked on "Base" to get the fiddle URL to show as /xxxxxx/#Base where xxxxxx is the fiddle code.
  2. Used the Fiddle Options to set the Fiddle Name as "MyFiddleName" and Description
  3. Clicked "Update"
  4. Clicked "Set as base"
  5. Now the dashboard shows "MyFiddleName" with the description and doesn't show the xxxxxx code.



回答3:


Here is what worked for me,

for new fiddle:

  1. In the left panel, under Fiddle Meta, give a name in the "untitled fiddle" input box
  2. Click save from the top menu to save the fiddle and the given name

for existing fiddle with code name:

  1. Click on the fiddle to open it.
  2. In the left panel, under Fiddle Meta, give a name in the "untitled fiddle" input box
  3. Click update and then set as base from the top menu to save the given name


来源:https://stackoverflow.com/questions/12279579/naming-and-configuring-jsfiddle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!